- fixed compilation of FXAA shader by macOS OpenGL

Compile Shader 'shaders/glsl/fxaa.fp':
ERROR: 0:250: '' : syntax error: incorrect preprocessor directive
ERROR: 0:250: '' : syntax error: unexpected tokens following #if preprocessor directive - expected a newline
ERROR: 0:265: '' : syntax error: incorrect preprocessor directive
ERROR: 0:265: '' : syntax error: unexpected tokens following #if preprocessor directive - expected a newline
ERROR: 0:266: '' :   Macro Redefined lumaM
ERROR: 0:301: '' : syntax error: incorrect preprocessor directive
ERROR: 0:301: '' : syntax error: unexpected tokens following #if preprocessor directive - expected a newline
ERROR: 0:599: '' : syntax error: incorrect preprocessor directive
ERROR: 0:599: '' : syntax error: unexpected tokens following #if preprocessor directive - expected a newline

https://forum.zdoom.org/viewtopic.php?t=65003
This commit is contained in:
alexey.lysiuk 2019-06-11 08:20:24 +03:00
parent a093f686a7
commit b6ada166fc

View file

@ -52,6 +52,8 @@ void main()
// NVIDIA FXAA 3.11 by TIMOTHY LOTTES // NVIDIA FXAA 3.11 by TIMOTHY LOTTES
//============================================================================ //============================================================================
#define FXAA_DISCARD 0
#define FXAA_GREEN_AS_LUMA 0 #define FXAA_GREEN_AS_LUMA 0
#define FxaaBool bool #define FxaaBool bool