diff options
author | Ian Romanick <[email protected]> | 2015-11-13 16:09:37 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2015-11-18 09:38:21 -0800 |
commit | 72e232374eda780a5dcd374b55d203d0e2a6d02b (patch) | |
tree | b424853803349693b73af242ede127cb0f90e1e2 /src | |
parent | 1a48326a84e3a5df0c3e6c2c3bd59992df5097ab (diff) |
meta/generate_mipmap: Don't leak the framebuffer object
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>
Cc: "10.6 11.0" <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/common/meta_generate_mipmap.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/common/meta_generate_mipmap.c b/src/mesa/drivers/common/meta_generate_mipmap.c index ffd71b6a199..bde170fcf6f 100644 --- a/src/mesa/drivers/common/meta_generate_mipmap.c +++ b/src/mesa/drivers/common/meta_generate_mipmap.c @@ -131,6 +131,11 @@ _mesa_meta_glsl_generate_mipmap_cleanup(struct gen_mipmap_state *mipmap) _mesa_DeleteSamplers(1, &mipmap->Sampler); mipmap->Sampler = 0; + if (mipmap->FBO != 0) { + _mesa_DeleteFramebuffers(1, &mipmap->FBO); + mipmap->FBO = 0; + } + _mesa_meta_blit_shader_table_cleanup(&mipmap->shaders); } |