From 6b114207dcb1f1132422924521799938688f2018 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Tue, 11 Jun 2019 08:20:24 +0300 Subject: [PATCH] - 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 --- wadsrc/static/shaders/glsl/fxaa.fp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wadsrc/static/shaders/glsl/fxaa.fp b/wadsrc/static/shaders/glsl/fxaa.fp index 220095ae10..0cb919069b 100644 --- a/wadsrc/static/shaders/glsl/fxaa.fp +++ b/wadsrc/static/shaders/glsl/fxaa.fp @@ -52,6 +52,8 @@ void main() // NVIDIA FXAA 3.11 by TIMOTHY LOTTES //============================================================================ +#define FXAA_DISCARD 0 + #define FXAA_GREEN_AS_LUMA 0 #define FxaaBool bool