mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-04-21 21:52:04 +02:00

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
15 lines
235 B
C
15 lines
235 B
C
#ifdef GLSLES
|
|
|
|
#ifdef FRAGMENT_SHADER
|
|
/* Only the fragment shader has no default float precision */
|
|
precision mediump float;
|
|
#endif
|
|
|
|
#else
|
|
|
|
/* Desktop GLSL doesn't know about these */
|
|
#define highp
|
|
#define mediump
|
|
#define lowp
|
|
|
|
#endif
|