diff options
-rw-r--r-- | src/vulkan/device.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/vulkan/device.c b/src/vulkan/device.c index 454e8f48f42..14a93c9af88 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -4129,12 +4129,9 @@ VkResult anv_DestroyRenderPass( */ struct anv_subpass *subpass = &pass->subpasses[i]; - if (subpass->input_attachments) - anv_device_free(device, subpass->input_attachments); - if (subpass->color_attachments) - anv_device_free(device, subpass->color_attachments); - if (subpass->resolve_attachments) - anv_device_free(device, subpass->resolve_attachments); + anv_device_free(device, subpass->input_attachments); + anv_device_free(device, subpass->color_attachments); + anv_device_free(device, subpass->resolve_attachments); } anv_device_free(device, pass); |