Clear up queue data when device is destroyed

This commit is contained in:
baldurk
2020-08-26 18:46:56 +01:00
parent 753806d526
commit f664d13bfc
@@ -3756,6 +3756,11 @@ void WrappedVulkan::vkDestroyDevice(VkDevice device, const VkAllocationCallbacks
m_QueueFamilyIdx = ~0U;
m_PrevQueue = m_Queue = VK_NULL_HANDLE;
m_QueueFamilies.clear();
m_QueueFamilyCounts.clear();
m_QueueFamilyIndices.clear();
m_ExternalQueues.clear();
// destroy the API device immediately. There should be no more
// resources left in the resource manager device/physical device/instance.
// Anything we created should be gone and anything the application created