From 04108ce4925f7de8211e3b06dcf351e4ad2700c5 Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Tue, 6 Mar 2012 14:28:52 -0800 Subject: [PATCH] gl/msaa: Do not attach a depth-stencil attachment to the default framebuffer Only texture surfaces need to have a depth-stencil attachment. The default framebuffer is responsible for managing its own depth and stencil attachments. --- src/cairo-gl-device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cairo-gl-device.c b/src/cairo-gl-device.c index edc207e78..47ee94e29 100644 --- a/src/cairo-gl-device.c +++ b/src/cairo-gl-device.c @@ -336,6 +336,9 @@ _cairo_gl_ensure_stencil (cairo_gl_context_t *ctx, GLenum internal_format = GL_DEPTH24_STENCIL8_OES; #endif + if (! _cairo_gl_surface_is_texture (surface)) + return TRUE; /* best guess for now, will check later */ + if (surface->depth_stencil) return TRUE;