mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-27 12:21:11 +00:00
Release baked commands when destroying command buffer
This commit is contained in:
@@ -1120,7 +1120,15 @@ VkResult WrappedVulkan::vkDestroyCommandBuffer(VkDevice device, VkCmdBuffer obj)
|
||||
{
|
||||
WrappedVkDispRes *wrapped = (WrappedVkDispRes *)GetWrapped(obj);
|
||||
GetResourceManager()->MarkCleanResource(wrapped->id);
|
||||
if(wrapped->record) wrapped->record->Delete(GetResourceManager());
|
||||
if(wrapped->record)
|
||||
{
|
||||
if(wrapped->record->bakedCommands)
|
||||
{
|
||||
wrapped->record->bakedCommands->Delete(GetResourceManager());
|
||||
wrapped->record->bakedCommands = NULL;
|
||||
}
|
||||
wrapped->record->Delete(GetResourceManager());
|
||||
}
|
||||
return ObjDisp(device)->DestroyCommandBuffer(Unwrap(device), wrapped->real.As<VkCmdBuffer>());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user