mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 15:20:17 +01:00
vk: Fix vkDestroyObject dispatch for VkRenderPass
It called anv_device_free() instead of anv_DestroyRenderPass().
This commit is contained in:
parent
188f2328de
commit
f5ad06eb78
1 changed files with 1 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue