Evas GL: Fix 'run-time shader' patch by changing position 'extension GL_OES_EGL_image... 25/63525/3
authorPrudhvi Raj, Vasireddi <prudhvi.raj@samsung.com>
Thu, 24 Mar 2016 10:37:22 +0000 (19:37 +0900)
committerPrudhvi Raj, Vasireddi <prudhvi.raj@samsung.com>
Thu, 24 Mar 2016 10:42:38 +0000 (19:42 +0900)
Change-Id: I899d9a49ad7313610bfdccd9d90a3ff3f17dee02

src/modules/evas/engines/gl_common/shader/evas_gl_shaders.x
src/modules/evas/engines/gl_common/shader/include.glsl

index 558531a..4826b6c 100644 (file)
@@ -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"
index b8f8ac1..f14b412 100755 (executable)
@@ -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