From f5ad06eb7894604c1c9d755a9efb9983ad3bf695 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Wed, 15 Jul 2015 14:33:10 -0700 Subject: [PATCH] vk: Fix vkDestroyObject dispatch for VkRenderPass It called anv_device_free() instead of anv_DestroyRenderPass(). --- src/vulkan/device.c | 4 +--- 1 file changed, 1 insertion(+), 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); -- 2.30.2