Destroy instance through correct dispatch table

This commit is contained in:
baldurk
2015-09-19 17:48:02 +02:00
parent 98bfdd82db
commit b4c00d9a7c
+1 -1
View File
@@ -5839,7 +5839,7 @@ bool WrappedVulkan::ReleaseResource(WrappedVkRes *res)
{
VkInstance instance = disp->real.As<VkInstance>();
dispatch_key key = get_dispatch_key(instance);
ObjDisp(instance)->DestroyInstance(instance);
((WrappedVkInstance::DispatchTableType *)disp->table)->DestroyInstance(instance);
destroy_dispatch_table(renderdoc_instance_table_map, key);
break;
}