From: Chad Versace Date: Wed, 15 Jul 2015 21:33:10 +0000 (-0700) Subject: vk: Fix vkDestroyObject dispatch for VkRenderPass X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f5ad06eb7894604c1c9d755a9efb9983ad3bf695;p=mesa.git vk: Fix vkDestroyObject dispatch for VkRenderPass It called anv_device_free() instead of anv_DestroyRenderPass(). --- 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);