[cairo-commit] src/cairo-gl-surface.c

Martin Robinson mrobinson at kemper.freedesktop.org
Mon Aug 19 13:06:24 PDT 2013


 src/cairo-gl-surface.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit b5e1373c5845c859ebf82ef4d5e065f6cdd68faf
Author: Henry Song <henry.song at samsung.com>
Date:   Mon Aug 19 12:14:46 2013 -0700

    gl/msaa: Clean up msaa depth/stencil buffer for OpenGLES
    
    OpenGLES also uses the depth/stencil buffer when doing multisampling, so
    it's a leak to only clean up the buffer for desktop OpenGL.

diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c
index f6b7928..1506f20 100644
--- a/src/cairo-gl-surface.c
+++ b/src/cairo-gl-surface.c
@@ -1024,9 +1024,10 @@ _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)


More information about the cairo-commit mailing list