mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-27 04:11:05 +00:00
Don't double-delete now that ReleaseWrappedResource does it all
This commit is contained in:
@@ -3669,15 +3669,7 @@ VkResult WrappedVulkan::vkFreeDescriptorSets(
|
||||
if(ret == VK_SUCCESS)
|
||||
{
|
||||
for(uint32_t i=0; i < count; i++)
|
||||
{
|
||||
ResourceId id = GetResID(pDescriptorSets[i]);
|
||||
|
||||
GetResourceManager()->MarkCleanResource(id);
|
||||
VkResourceRecord *record = GetResourceManager()->GetResourceRecord(id);
|
||||
if(record)
|
||||
record->Delete(GetResourceManager());
|
||||
GetResourceManager()->ReleaseWrappedResource(pDescriptorSets[i]);
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user