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

Chris Wilson ickle at kemper.freedesktop.org
Tue Mar 6 16:04:31 PST 2012


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

New commits:
commit 04108ce4925f7de8211e3b06dcf351e4ad2700c5
Author: Martin Robinson <mrobinson at igalia.com>
Date:   Tue Mar 6 14:28:52 2012 -0800

    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.

diff --git a/src/cairo-gl-device.c b/src/cairo-gl-device.c
index edc207e..47ee94e 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;
 


More information about the cairo-commit mailing list