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:
parent
b2eeecd624
commit
9ccad0d197
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user