summaryrefslogtreecommitdiff
path: root/drivers/gles2/shaders/cube_to_dp.glsl
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-12-21 15:14:55 +0100
committerRémi Verschelde <rverschelde@gmail.com>2018-12-21 15:14:58 +0100
commit57416bfbce17905e71d143478a796dc6b27ba4f7 (patch)
tree595725cb0692f6372d828452d56b92515acd2052 /drivers/gles2/shaders/cube_to_dp.glsl
parent762b9b6bdbec24b0fa0fffd34e6e0afff7cf01fd (diff)
GLES2: Define 'lowp' for OpenGL 2.1
Precision qualifiers are only used on OpenGL ES 2.0 and 3.0, and while OpenGL 3.3 defines them for compatibility (but without practical effect), they're missing from OpenGL 2.1, so we define them to prevent compilation errors. Fixes #24521.
Diffstat (limited to 'drivers/gles2/shaders/cube_to_dp.glsl')
-rw-r--r--drivers/gles2/shaders/cube_to_dp.glsl2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gles2/shaders/cube_to_dp.glsl b/drivers/gles2/shaders/cube_to_dp.glsl
index 3d24c36336..cb4b3f6dec 100644
--- a/drivers/gles2/shaders/cube_to_dp.glsl
+++ b/drivers/gles2/shaders/cube_to_dp.glsl
@@ -2,6 +2,7 @@
[vertex]
#ifdef USE_GLES_OVER_GL
+#define lowp
#define mediump
#define highp
#else
@@ -25,6 +26,7 @@ void main() {
[fragment]
#ifdef USE_GLES_OVER_GL
+#define lowp
#define mediump
#define highp
#else