Add some precision statements to make GLES slightly happier.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 20 Mar 2014 20:45:57 +0000 (21:45 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 20 Mar 2014 20:45:57 +0000 (21:45 +0100)
header.frag
texture1d.frag

index af211fe..fe05ef5 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef GL_ES
+precision highp float;
+#endif
+
 #ifdef GL_EXT_gpu_shader4
 // We sometimes want round().
 #extension GL_EXT_gpu_shader4 : enable
index c3a8047..addf900 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef GL_ES
+precision highp float;
+#endif
+
 uniform sampler2D tex;
 varying vec2 tc;