mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-24 15:36:33 +00:00
Fix vulkan shutdown crash, destroy GPUBuffer before device/instance
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user