diff options
author | Chad Versace <[email protected]> | 2015-07-15 14:33:10 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2015-07-15 15:07:41 -0700 |
commit | f5ad06eb7894604c1c9d755a9efb9983ad3bf695 (patch) | |
tree | 0ed228c9785386c56e0628b1bee62141d0da1dd0 | |
parent | 188f2328de8d28cf67428e6707af74c07f783166 (diff) |
vk: Fix vkDestroyObject dispatch for VkRenderPass
It called anv_device_free() instead of anv_DestroyRenderPass().
-rw-r--r-- | src/vulkan/device.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/vulkan/device.c b/src/vulkan/device.c index a4165ac1c81..2b8bcbe9e82 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -1255,9 +1255,7 @@ VkResult anv_DestroyObject( return VK_SUCCESS; case VK_OBJECT_TYPE_RENDER_PASS: - /* These are trivially destroyable */ - anv_device_free(device, (void *) _object); - return VK_SUCCESS; + return anv_DestroyRenderPass(_device, (VkRenderPass) _object); case VK_OBJECT_TYPE_DYNAMIC_VP_STATE: return anv_DestroyDynamicViewportState(_device, (VkDynamicViewportState) _object); |