summaryrefslogtreecommitdiff
path: root/drivers/gles2/shaders/lens_distorted.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gles2/shaders/lens_distorted.glsl')
-rw-r--r--drivers/gles2/shaders/lens_distorted.glsl7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gles2/shaders/lens_distorted.glsl b/drivers/gles2/shaders/lens_distorted.glsl
index 81898a75a5..f4ff80ba9a 100644
--- a/drivers/gles2/shaders/lens_distorted.glsl
+++ b/drivers/gles2/shaders/lens_distorted.glsl
@@ -34,8 +34,13 @@ void main() {
#define mediump
#define highp
#else
-precision mediump float;
+#if defined(USE_HIGHP_PRECISION)
+precision highp float;
precision highp int;
+#else
+precision mediump float;
+precision mediump int;
+#endif
#endif
uniform sampler2D source; //texunit:0