From a5d13aa327d9f25cbb17f122e3bf430ab0b12bce Mon Sep 17 00:00:00 2001 From: "Wonsik, Jung" Date: Thu, 15 Dec 2016 21:10:22 +0900 Subject: [PATCH] [EvasGL] Fix to OpenGLES 1.1 rendering issue. If the DDK driver supports depth_stencil buffer, evas gl can not use GL_UNSIGNED_INT_24_8_OES. Because OES_depth_texture is supported since OpenGLES 2.0. So, if application want to use OpenGLES 1.1, Evas GL should use depth and stencil buffer Change-Id: I5fe7c01ee5a37fd0f670192e187e5b233f8aa5d6 --- src/modules/evas/engines/gl_common/evas_gl_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/evas/engines/gl_common/evas_gl_core.c b/src/modules/evas/engines/gl_common/evas_gl_core.c index 74d8f6a..58a1b37 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_core.c +++ b/src/modules/evas/engines/gl_common/evas_gl_core.c @@ -1284,7 +1284,7 @@ _surface_buffers_allocate(void *eng_data EINA_UNUSED, EVGL_Surface *sfc, int w, } // Depth_stencil buffers or separate buffers - if (sfc->depth_stencil_fmt) + if (sfc->depth_stencil_fmt && version > EVAS_GL_GLES_1_X) { #ifdef GL_GLES if (version == EVAS_GL_GLES_3_X) -- 2.7.4