From 983db2b8042ee8ca25a3870767e0d76940011034 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 27 Jan 2016 19:48:43 -0800 Subject: [PATCH] anv/meta_resolve: Fix a bug in the meta pipeline destroy path --- src/vulkan/anv_meta_resolve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/anv_meta_resolve.c b/src/vulkan/anv_meta_resolve.c index 9fa47949288..30ef727bb06 100644 --- a/src/vulkan/anv_meta_resolve.c +++ b/src/vulkan/anv_meta_resolve.c @@ -358,7 +358,7 @@ anv_device_finish_meta_resolve_state(struct anv_device *device) for (uint32_t i = 0; i < ARRAY_SIZE(state->resolve.pipelines); ++i) { VkPipeline pipeline_h = state->resolve.pipelines[i]; - if (!pipeline_h) { + if (pipeline_h) { ANV_CALL(DestroyPipeline)(device_h, pipeline_h, alloc); } } -- 2.30.2