[clutter-gst] sink: Update the shaders to work with Cogl 1.6.0+ and GLES2



commit 11cce755880127565e88bd50c63c6f0b7ee6051f
Author: Damien Lespiau <damien lespiau intel com>
Date:   Thu Oct 6 15:40:08 2011 +0300

    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

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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]