mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-24 07:26:34 +00:00
Fetch unwrapped surface pointer before releasing wrapped object
This commit is contained in:
@@ -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