Skip to content
Snippets Groups Projects
Commit 758f12fd authored by Ian Romanick's avatar Ian Romanick
Browse files

meta/generate_mipmap: Don't leak the sampler object


Signed-off-by: default avatarIan Romanick <ian.d.romanick@intel.com>
Cc: "10.6 11.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: default avatarAnuj Phogat <anuj.phogat@gmail.com>
parent 7a879e42
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment