Skip to content
Permalink
Browse files

- 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
  • Loading branch information...
alexey-lysiuk committed Jun 11, 2019
1 parent a093f68 commit b6ada166fc8b8a74a28fe01be0ee14e2ae3beb62
Showing with 2 additions and 0 deletions.
  1. +2 −0 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

0 comments on commit b6ada16

Please sign in to comment.
You can’t perform that action at this time.