mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-09 07:18:04 +02:00
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:
parent
3454604459
commit
04108ce492
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue