From 1b9480f6144a376611944b44b2274a774b524e8b Mon Sep 17 00:00:00 2001 From: Bastian Winkler Date: Wed, 19 Sep 2012 18:11:41 +0200 Subject: [PATCH] gl: Return GL_DEPTH24_STENCIL8_OES for GLESv2 surfaces On GLESv2 surfaces, _get_depth_stencil_format should return GL_DEPTH24_STENCIL8_OES instead of GL_DEPTH24_STENCIL8. https://bugs.freedesktop.org/show_bug.cgi?id=50355 --- src/cairo-gl-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cairo-gl-device.c b/src/cairo-gl-device.c index 9cb0c21..6563b3b 100644 --- a/src/cairo-gl-device.c +++ b/src/cairo-gl-device.c @@ -321,7 +321,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; + return GL_DEPTH24_STENCIL8_OES; #endif #if CAIRO_HAS_GL_SURFACE -- 1.7.10.4