Fix precision issues in vertex shaders

Restore conditional that makes mediump declaration only apply to fragment shaders
This was erroneously removed to make the Lanczos3 shader link properly, but it resulted in vertex shaders incorrectly defaulting to mediump
Add highp precision declaration to Lanczos3 fragment shader so that it can link
This commit is contained in:
Eblo 2023-10-22 12:15:00 -04:00
parent 35348e8ec2
commit 79bcaf266f
No known key found for this signature in database
GPG key ID: 214AFBC4697F23AC
2 changed files with 4 additions and 0 deletions

View file

@ -1,6 +1,9 @@
#ifdef GLSLES
#ifdef FRAGMENT_SHADER
/* Only the fragment shader has no default float precision */
precision mediump float;
#endif
#else

View file

@ -2,6 +2,7 @@
// Copyright 2020 Lilian Gimenez (Sentmoraap).
// MIT license.
precision highp float;
uniform sampler2D texture;
uniform vec2 sourceSize;
uniform vec2 texSizeInv;