From: Prudhvi Raj, Vasireddi Date: Thu, 24 Mar 2016 10:37:22 +0000 (+0900) Subject: Evas GL: Fix 'run-time shader' patch by changing position 'extension GL_OES_EGL_image... X-Git-Tag: accepted/tizen/common/20160325.135430^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F25%2F63525%2F3;p=platform%2Fupstream%2Fefl.git Evas GL: Fix 'run-time shader' patch by changing position 'extension GL_OES_EGL_image_external:require' Change-Id: I899d9a49ad7313610bfdccd9d90a3ff3f17dee02 --- diff --git a/src/modules/evas/engines/gl_common/shader/evas_gl_shaders.x b/src/modules/evas/engines/gl_common/shader/evas_gl_shaders.x index 558531a..4826b6c 100644 --- a/src/modules/evas/engines/gl_common/shader/evas_gl_shaders.x +++ b/src/modules/evas/engines/gl_common/shader/evas_gl_shaders.x @@ -8,15 +8,15 @@ static const char fragment_glsl[] = " * through cpp first (in which case the precision must be manually added).\n" " */\n" "#ifdef GL_ES\n" + "# ifdef SHD_EXTERNAL\n" + "# extension GL_OES_EGL_image_external : require\n" + "# define SAMPLER_EXTERNAL_OES samplerExternalOES\n" + "# endif\n" "# ifdef GL_FRAGMENT_PRECISION_HIGH\n" "precision highp float;\n" "# else\n" "precision mediump float;\n" "# endif\n" - "# ifdef SHD_EXTERNAL\n" - "extension GL_OES_EGL_image_external : require\n" - "# define SAMPLER_EXTERNAL_OES samplerExternalOES\n" - "# endif\n" "#else\n" "# define SAMPLER_EXTERNAL_OES sampler2D\n" "#endif\n" diff --git a/src/modules/evas/engines/gl_common/shader/include.glsl b/src/modules/evas/engines/gl_common/shader/include.glsl index b8f8ac1..f14b412 100755 --- a/src/modules/evas/engines/gl_common/shader/include.glsl +++ b/src/modules/evas/engines/gl_common/shader/include.glsl @@ -1,14 +1,14 @@ define(`FRAGMENT_SHADER',` #ifdef GL_ES +# ifdef SHD_EXTERNAL +# extension GL_OES_EGL_image_external : require +# define SAMPLER_EXTERNAL_OES samplerExternalOES +# endif # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; # else precision mediump float; # endif -# ifdef SHD_EXTERNAL -extension GL_OES_EGL_image_external : require -# define SAMPLER_EXTERNAL_OES samplerExternalOES -# endif #else # define SAMPLER_EXTERNAL_OES sampler2D #endif