mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +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() {
|
DxvkDevice::~DxvkDevice() {
|
||||||
// Wait for all pending Vulkan commands to be
|
// Wait for all pending Vulkan commands to be
|
||||||
// executed before we destroy any resources.
|
// executed before we destroy any resources.
|
||||||
m_vkd->vkDeviceWaitIdle(m_vkd->device());
|
this->waitForIdle();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user