Don't double-delete now that ReleaseWrappedResource does it all

This commit is contained in:
baldurk
2015-09-19 16:44:12 +02:00
parent fe9f89cb47
commit 9260bfd0be
-8
View File
@@ -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;