Skip to content

Commit

Permalink
Vulkan: Destroy items in destruction queue unconditionally
Browse files Browse the repository at this point in the history
fixes a bug where one iteration is not enough due to dependency chains.
  • Loading branch information
goeiecool9999 committed Nov 5, 2024
1 parent 45afeaa commit 02f1c47
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -703,11 +703,12 @@ VulkanRenderer::~VulkanRenderer()
vkDestroyDebugUtilsMessengerEXT(m_instance, m_debugCallback, nullptr);
}

for(auto& i : m_destructionQueue)
delete i;

// destroy memory manager
memoryManager.reset();

ProcessDestructionQueue();

// destroy instance, devices
if (m_instance != VK_NULL_HANDLE)
{
Expand Down

0 comments on commit 02f1c47

Please sign in to comment.