1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[dxvk] Use waitForIdle when destroying DXVK device

Otherwise, we might call vkDeviceWaitIdle before all command buffers
have been submitted to the Vulkan queue. Found by inspection.
This commit is contained in:
Philip Rebohle 2019-11-26 22:06:13 +01:00
parent b2eeecd624
commit 9ccad0d197
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -30,7 +30,7 @@ namespace dxvk {
DxvkDevice::~DxvkDevice() {
// Wait for all pending Vulkan commands to be
// executed before we destroy any resources.
m_vkd->vkDeviceWaitIdle(m_vkd->device());
this->waitForIdle();
}