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.
This commit is contained in:
Martin Robinson 2012-03-06 14:28:52 -08:00 committed by Chris Wilson
parent 3454604459
commit 04108ce492

View file

@ -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;