summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2010-07-15 12:20:34 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2010-07-15 14:07:08 +0100
commit11a0d7ec0d991012e8a83baaa803dc2eb60ffcd3 (patch)
tree586c83ebca201b74fb8ef97e1f9f68f104f6f666
parent54dd00efce5076b8ba053aa1a071b6b31911a781 (diff)
downloadclutter-gst-11a0d7ec0d991012e8a83baaa803dc2eb60ffcd3.tar.gz
gles2: Don't try to use a private define from Clutter
The GLES2 specific defines for the GLSL shaders were depending on a HAVE_COGL_GLES2 define, something stolen from test-shader in Clutter and that used an internal define. Let's use COGL_HAS_GLES instead.
-rw-r--r--clutter-gst/clutter-gst-shaders.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/clutter-gst/clutter-gst-shaders.h b/clutter-gst/clutter-gst-shaders.h
index a570956..1f70f2b 100644
--- a/clutter-gst/clutter-gst-shaders.h
+++ b/clutter-gst/clutter-gst-shaders.h
@@ -8,7 +8,7 @@
/* These variables are used instead of the standard GLSL variables on
GLES 2 */
-#ifdef HAVE_COGL_GLES2
+#ifdef COGL_HAS_GLES
#define GLES2_VARS \
"precision mediump float;\n" \
@@ -17,13 +17,13 @@
#define TEX_COORD "tex_coord"
#define COLOR_VAR "frag_color"
-#else /* HAVE_COGL_GLES2 */
+#else /* COGL_HAS_GLES */
#define GLES2_VARS ""
#define TEX_COORD "gl_TexCoord[0]"
#define COLOR_VAR "gl_Color"
-#endif /* HAVE_COGL_GLES2 */
+#endif /* COGL_HAS_GLES */
/* a couple of boilerplate defines that are common amongst all the
* sample shaders