mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-14 22:50:45 +00:00
Wait for Vulkan device idle in DestroyDeviceAndSwapChain() to avoid random crashes on exit
This commit is contained in:
parent
8a915b88a4
commit
444b25a1e8
1 changed files with 2 additions and 0 deletions
|
@ -1218,6 +1218,8 @@ void DeviceManager_VK::DestroyDeviceAndSwapChain()
|
|||
{
|
||||
OPTICK_SHUTDOWN();
|
||||
|
||||
m_VulkanDevice.waitIdle();
|
||||
|
||||
m_FrameWaitQuery = nullptr;
|
||||
|
||||
for( int i = 0; i < m_SwapChainImages.size(); i++ )
|
||||
|
|
Loading…
Reference in a new issue