diff options
author | Juan Linietsky <reduzio@gmail.com> | 2019-01-24 18:58:42 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2019-01-24 18:58:42 -0300 |
commit | b32298a660f95abd94b7dc9e7ea68bd38150d149 (patch) | |
tree | 5e226c531ab8a4c0589a8e53b9730c7467f196e0 /drivers/gles2/shaders/copy.glsl | |
parent | a280bd0c854d15f3d50952186370c37dfab467f0 (diff) |
Ensure WebGL uses highp by default, and fix some wrong mediump usages. Fixes #22962.
Diffstat (limited to 'drivers/gles2/shaders/copy.glsl')
-rw-r--r-- | drivers/gles2/shaders/copy.glsl | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/gles2/shaders/copy.glsl b/drivers/gles2/shaders/copy.glsl index 286ba6b8c0..931b3f3708 100644 --- a/drivers/gles2/shaders/copy.glsl +++ b/drivers/gles2/shaders/copy.glsl @@ -6,8 +6,8 @@ #define mediump #define highp #else -precision mediump float; -precision mediump int; +precision highp float; +precision highp int; #endif attribute highp vec4 vertex_attrib; // attrib:0 @@ -61,9 +61,14 @@ void main() { #define mediump #define highp #else +#if defined(USE_HIGHP_PRECISION) +precision highp float; +precision highp int; +#else precision mediump float; precision mediump int; #endif +#endif #if defined(USE_CUBEMAP) || defined(USE_PANORAMA) varying vec3 cube_interp; |