mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-07 23:41:18 +12:00
Vulkan: Loop processing destruction queue until empty
fixes a bug where one iteration is not enough due to dependency chains.
This commit is contained in:
parent
45afeaa67b
commit
ec91b6c883
1 changed files with 3 additions and 2 deletions
|
@ -703,11 +703,12 @@ VulkanRenderer::~VulkanRenderer()
|
|||
vkDestroyDebugUtilsMessengerEXT(m_instance, m_debugCallback, nullptr);
|
||||
}
|
||||
|
||||
while(!m_destructionQueue.empty())
|
||||
ProcessDestructionQueue();
|
||||
|
||||
// destroy memory manager
|
||||
memoryManager.reset();
|
||||
|
||||
ProcessDestructionQueue();
|
||||
|
||||
// destroy instance, devices
|
||||
if (m_instance != VK_NULL_HANDLE)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue