mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-04-26 04:45:18 -06: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
@ -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…
Reference in New Issue
Block a user