[Mesa-dev] [Mesa-stable] [PATCH] meta/generate_mipmap: Don't leak the framebuffer object
Anuj Phogat
anuj.phogat at gmail.com
Mon Nov 16 14:06:35 PST 2015
On Mon, Nov 16, 2015 at 10:32 AM, Ian Romanick <idr at freedesktop.org> wrote:
> From: Ian Romanick <ian.d.romanick at intel.com>
>
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
> Cc: "10.6 11.0" <mesa-stable at lists.freedesktop.org>
> ---
> src/mesa/drivers/common/meta_generate_mipmap.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/src/mesa/drivers/common/meta_generate_mipmap.c b/src/mesa/drivers/common/meta_generate_mipmap.c
> index ffd71b6..bde170f 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);
> }
>
> --
> 2.1.0
>
> _______________________________________________
> mesa-stable mailing list
> mesa-stable at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-stable
Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
More information about the mesa-dev
mailing list