From 11a0d7ec0d991012e8a83baaa803dc2eb60ffcd3 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Thu, 15 Jul 2010 12:20:34 +0100 Subject: 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. --- clutter-gst/clutter-gst-shaders.h | 6 +++--- 1 file 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 -- cgit v1.2.1