[EvasGL] Fix to OpenGLES 1.1 rendering issue.
authorWonsik, Jung <sidein@samsung.com>
Thu, 15 Dec 2016 12:10:22 +0000 (21:10 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 2 Jan 2017 07:25:25 +0000 (16:25 +0900)
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

index 74d8f6a..58a1b37 100644 (file)
@@ -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)