[patch] gl/msaa: release msaa_depth_stencil buffer under GLESv2

Andrei Volykhin <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAGgbaz+x=iG85mpamg_emVBXdvq8t=B45K2G-vv9CHS7MjOfrA@mail.gmail.com>
diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c
index c0ee79f..5c2a597 100644
--- a/src/cairo-gl-surface.c
+++ b/src/cairo-gl-surface.c
@@ -973,9 +973,9 @@ _cairo_gl_surface_finish (void *abstract_surface)
     if (surface->owns_tex)
        glDeleteTextures (1, &surface->tex);

-#if CAIRO_HAS_GL_SURFACE
     if (surface->msaa_depth_stencil)
        ctx->dispatch.DeleteRenderbuffers (1, &surface->msaa_depth_stencil);
+#if CAIRO_HAS_GL_SURFACE
     if (surface->msaa_fb)
        ctx->dispatch.DeleteFramebuffers (1, &surface->msaa_fb);
     if (surface->msaa_rb)


If cairo will be configured with next options: ./confugire --enable-gl=no
--enable-glesv2=yes --enable-egl=yes, and we'll use gl/msaa compositor
(export CAIRO_GL_COMPOSITOR=msaa)
and GL_RENDERER support next extension -
"GL_IMG_multisampled_render_to_texture" or
"GL_EXT_multisampled_render_to_texture", we'll get memory leaks on
embeddeddevices (GLESv2).

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.