aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2015-11-10 12:36:58 -0800
committerIan Romanick <[email protected]>2015-11-13 12:29:56 -0800
commit758f12fd98dea9a9682becf2d496bd38ef3959e5 (patch)
tree05997e3911436ec3d4577d1f58ca042044ef8f60 /src/mesa/drivers
parent7a879e422bcdaf89bde286de6c7b9db5c34f7fc3 (diff)
meta/generate_mipmap: Don't leak the sampler object
Signed-off-by: Ian Romanick <[email protected]> Cc: "10.6 11.0" <[email protected]> Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/common/meta_generate_mipmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/common/meta_generate_mipmap.c b/src/mesa/drivers/common/meta_generate_mipmap.c
index 4800278a467..a9da0a21ba3 100644
--- a/src/mesa/drivers/common/meta_generate_mipmap.c
+++ b/src/mesa/drivers/common/meta_generate_mipmap.c
@@ -128,6 +128,8 @@ _mesa_meta_glsl_generate_mipmap_cleanup(struct gen_mipmap_state *mipmap)
mipmap->VAO = 0;
_mesa_DeleteBuffers(1, &mipmap->VBO);
mipmap->VBO = 0;
+ _mesa_DeleteSamplers(1, &mipmap->Sampler);
+ mipmap->Sampler = 0;
_mesa_meta_blit_shader_table_cleanup(&mipmap->shaders);
}