mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-24 15:36:33 +00:00
Fix image states being removed too early on image destruction
* This causes problems if we're doing a last-second initial state prepare on destruction.
This commit is contained in:
@@ -247,10 +247,11 @@ void WrappedVulkan::vkDestroyImage(VkDevice device, VkImage obj,
|
||||
if(obj == VK_NULL_HANDLE)
|
||||
return;
|
||||
|
||||
EraseImageState(GetResID(obj));
|
||||
|
||||
VkImage unwrappedObj = Unwrap(obj);
|
||||
GetResourceManager()->ReleaseWrappedResource(obj, true);
|
||||
|
||||
EraseImageState(GetResID(obj));
|
||||
|
||||
return ObjDisp(device)->DestroyImage(Unwrap(device), unwrappedObj, pAllocator);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user