From 74e076bba807884f9bbc14c1b2ad8cf501c7ed1f Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 25 Aug 2015 18:51:26 -0700 Subject: [PATCH] vk/meta: Destroy vertex shaders when setting up clearing --- src/vulkan/anv_meta.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vulkan/anv_meta.c b/src/vulkan/anv_meta.c index 858a3daf11c..cdd357ddcc9 100644 --- a/src/vulkan/anv_meta.c +++ b/src/vulkan/anv_meta.c @@ -187,7 +187,9 @@ anv_device_init_meta_clear_state(struct anv_device *device) }, &device->meta_state.clear.pipeline); + anv_DestroyShaderModule(anv_device_to_handle(device), vsm); anv_DestroyShaderModule(anv_device_to_handle(device), fsm); + anv_DestroyShader(anv_device_to_handle(device), vs); anv_DestroyShader(anv_device_to_handle(device), fs); } -- 2.30.2