diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2011-10-06 15:40:08 +0300 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2011-10-28 17:04:13 +0100 |
commit | 11cce755880127565e88bd50c63c6f0b7ee6051f (patch) | |
tree | fdb277f43cf43e1f7baf0de0907215b225467725 | |
parent | a1a5a7221ed21f5ea43833cdd7839e2130fc6919 (diff) |
sink: Update the shaders to work with Cogl 1.6.0+ and GLES2
The GLES2 shaders were considered private API until 1.6.0, see
discussion:
https://bugzilla.gnome.org/show_bug.cgi?id=661071
Let's update the variable names and depend on 1.6.0
-rw-r--r-- | clutter-gst/clutter-gst-shaders.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/clutter-gst/clutter-gst-shaders.h b/clutter-gst/clutter-gst-shaders.h index 1f70f2b..d1afdb1 100644 --- a/clutter-gst/clutter-gst-shaders.h +++ b/clutter-gst/clutter-gst-shaders.h @@ -11,11 +11,9 @@ #ifdef COGL_HAS_GLES #define GLES2_VARS \ - "precision mediump float;\n" \ - "varying vec2 tex_coord;\n" \ - "varying vec4 frag_color;\n" -#define TEX_COORD "tex_coord" -#define COLOR_VAR "frag_color" + "precision mediump float;\n" +#define TEX_COORD "cogl_tex_coord_in[0]" +#define COLOR_VAR "cogl_color_in" #else /* COGL_HAS_GLES */ |