summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Song <henry.song@samsung.com>2013-08-19 12:14:46 -0700
committerMartin Robinson <mrobinson@igalia.com>2013-08-19 12:56:58 -0700
commitb5e1373c5845c859ebf82ef4d5e065f6cdd68faf (patch)
tree5a7c451dcff12913742dea93420cdd87d2e02f79
parent54a51968e82ec4e6a8d81d5451232641275439df (diff)
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.
-rw-r--r--src/cairo-gl-surface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c
index f6b7928b7..1506f2010 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)