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

Andrei Volykhin andrei.volykhin at gmail.com
Thu Oct 18 05:07:12 PDT 2012


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).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20121018/3155a178/attachment.html>


More information about the cairo mailing list