vk/meta: Destroy vertex shaders when setting up clearing
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 26 Aug 2015 01:51:26 +0000 (18:51 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 26 Aug 2015 01:51:26 +0000 (18:51 -0700)
src/vulkan/anv_meta.c

index 858a3daf11c7e31a76320134b3836c47e2cac7af..cdd357ddcc9ca31d3cc9917ace59c1b145ea7081 100644 (file)
@@ -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);
 }