Skip to content

Commit 736bffa

Browse files
authored
Another fix for crashing with VK_DEVICE_LOST (#3404)
1 parent 2b1c73f commit 736bffa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/renderer_vk.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -7819,10 +7819,10 @@ VK_DESTROY
78197819
}
78207820

78217821
m_denseIdx = _denseIdx;
7822-
m_nwh = _nwh;
7823-
m_width = _width;
7824-
m_height = _height;
7825-
m_sampler = m_swapChain.m_sampler;
7822+
m_nwh = _nwh;
7823+
m_width = m_swapChain.m_sci.imageExtent.width;
7824+
m_height = m_swapChain.m_sci.imageExtent.height;
7825+
m_sampler = m_swapChain.m_sampler;
78267826

78277827
return result;
78287828
}

0 commit comments

Comments
 (0)