Skip to content

Commit

Permalink
gl: Use core GL_STENCIL8_DEPTH24 for gl_flavor=desktop
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chris Wilson committed May 24, 2012
1 parent 52b7622 commit 465319c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cairo-gl-device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 465319c

Please sign in to comment.