mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-23 04:58:08 +02:00
gl: Use core GL_STENCIL8_DEPTH24 for gl_flavor=desktop
Jesse complained that --enable-gl --enable-glesv2 wasn't pulling in the right headers, and in particular GL_STENCIL8_DEPTH24_OES was undefined but being used. In this case we can simply use the identical GL_STENCIL8_DEPTH24 instead. Reported-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
52b7622a6c
commit
465319ce82
1 changed files with 1 additions and 1 deletions
|
|
@ -319,7 +319,7 @@ _get_depth_stencil_format (cairo_gl_context_t *ctx)
|
|||
|
||||
#if CAIRO_HAS_GLESV2_SURFACE
|
||||
if (ctx->gl_flavor == CAIRO_GL_FLAVOR_DESKTOP)
|
||||
return GL_DEPTH24_STENCIL8_OES;
|
||||
return GL_DEPTH24_STENCIL8;
|
||||
#endif
|
||||
|
||||
#if CAIRO_HAS_GL_SURFACE
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue