]> git.sesse.net Git - movit/commitdiff
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 af211fee6de53e2f02c5018d5ae5e59157117351..fe05ef5ef509705d2157a3062d19f60f278fbd4f 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
 #ifdef GL_EXT_gpu_shader4
 // We sometimes want round().
 #extension GL_EXT_gpu_shader4 : enable
index c3a804733bbce25fc362dae0f8fb7dc11cb1fbff..addf9008ef7c1bfe7889d0676ef48bbb74bff389 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef GL_ES
+precision highp float;
+#endif
+
 uniform sampler2D tex;
 varying vec2 tc;
 
 uniform sampler2D tex;
 varying vec2 tc;