" * 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"
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