mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-09 05:41:31 +00:00
Fetch unwrapped surface pointer before releasing wrapped object
This commit is contained in:
1 parent
4db6655c71
commit
002ae7adff
1 file changed
+3
-1
@@ -657,6 +657,8 @@ void WrappedVulkan::vkDestroySurfaceKHR(
|
||||
// now set record pointer back to NULL so no-one tries to delete it
|
||||
wrapper->record = NULL;
|
||||
|
||||
VkSurfaceKHR unwrappedObj = wrapper->real.As<VkSurfaceKHR>();
|
||||
|
||||
GetResourceManager()->ReleaseWrappedResource(surface, true);
|
||||
ObjDisp(instance)->DestroySurfaceKHR(Unwrap(instance), wrapper->real.As<VkSurfaceKHR>(), pAllocator);
|
||||
ObjDisp(instance)->DestroySurfaceKHR(Unwrap(instance), unwrappedObj, pAllocator);
|
||||
}
|
||||
Reference in new issue
Block a user