mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Don't check for wrappers since on capture wrappers aren't registered
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
void WrappedVulkan::vk ## func(VkDevice device, type obj, const VkAllocationCallbacks* pAllocator) \
|
||||
{ \
|
||||
type unwrappedObj = Unwrap(obj); \
|
||||
if(GetResourceManager()->HasWrapper(ToTypedHandle(unwrappedObj))) GetResourceManager()->ReleaseWrappedResource(obj, true); \
|
||||
GetResourceManager()->ReleaseWrappedResource(obj, true); \
|
||||
ObjDisp(device)->func(Unwrap(device), unwrappedObj, pAllocator); \
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ void WrappedVulkan::vkDestroySwapchainKHR(VkDevice device, VkSwapchainKHR obj, c
|
||||
}
|
||||
|
||||
VkSwapchainKHR unwrappedObj = Unwrap(obj);
|
||||
if(GetResourceManager()->HasWrapper(ToTypedHandle(unwrappedObj))) GetResourceManager()->ReleaseWrappedResource(obj, true);
|
||||
GetResourceManager()->ReleaseWrappedResource(obj, true);
|
||||
ObjDisp(device)->DestroySwapchainKHR(Unwrap(device), unwrappedObj, pAllocator);
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ void WrappedVulkan::vkDestroyImage(VkDevice device, VkImage obj, const VkAllocat
|
||||
{
|
||||
m_ImageLayouts.erase(GetResID(obj));
|
||||
VkImage unwrappedObj = Unwrap(obj);
|
||||
if(GetResourceManager()->HasWrapper(ToTypedHandle(unwrappedObj))) GetResourceManager()->ReleaseWrappedResource(obj, true);
|
||||
GetResourceManager()->ReleaseWrappedResource(obj, true);
|
||||
return ObjDisp(device)->DestroyImage(Unwrap(device), unwrappedObj, pAllocator);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user