Add some precision statements to make GLES slightly happier.
[movit] / texture1d.frag
index 4f8b981..addf900 100644 (file)
@@ -1,7 +1,11 @@
-uniform sampler1D tex;
+#ifdef GL_ES
+precision highp float;
+#endif
+
+uniform sampler2D tex;
 varying vec2 tc;
 
 void main()
 {
-       gl_FragColor = texture1D(tex, tc.x);
+       gl_FragColor = texture2D(tex, tc);  // Second component is irrelevant.
 }