From: Wonsik, Jung Date: Thu, 15 Dec 2016 12:10:22 +0000 (+0900) Subject: [EvasGL] Fix to OpenGLES 1.1 rendering issue. X-Git-Tag: accepted/tizen/common/20170102.152350~76 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5d13aa327d9f25cbb17f122e3bf430ab0b12bce;p=platform%2Fupstream%2Fefl.git [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 --- 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)