[cairo] [patch] gl: gles2 only supports GL_DEPTH24_STENCIL8_OES

Henry (Yu) Song - SISA hsong at sisa.samsung.com
Thu Sep 27 11:25:52 PDT 2012


>From 6d6495e7301aefcc19a22bddf82b231fcc73a971 Mon Sep 17 00:00:00 2001
From: Henry Song <henry.song at samsung.com>
Date: Thu, 27 Sep 2012 11:26:27 -0700
Subject: [PATCH] gl: GLES only supports GL_DEPTH24_STENCIL8_OES

---
 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.9.5


More information about the cairo mailing list