Fix vulkan shutdown crash, destroy GPUBuffer before device/instance

This commit is contained in:
baldurk
2018-07-06 22:44:25 +01:00
parent 178f61abd0
commit f00832f2f9
2 changed files with 2 additions and 2 deletions
-2
View File
@@ -176,8 +176,6 @@ WrappedVulkan::~WrappedVulkan()
if(VkMarkerRegion::vk == this)
VkMarkerRegion::vk = NULL;
m_IndirectBuffer.Destroy();
// in case the application leaked some objects, avoid crashing trying
// to release them ourselves by clearing the resource manager.
// In a well-behaved application, this should be a no-op.
@@ -592,6 +592,8 @@ void WrappedVulkan::Shutdown()
m_Replay.DestroyResources();
m_IndirectBuffer.Destroy();
// destroy debug manager and any objects it created
SAFE_DELETE(m_DebugManager);
SAFE_DELETE(m_ShaderCache);