glsl: ignore trailing whitespace when define redefined
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 10 Oct 2018 00:03:47 +0000 (11:03 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 10 Oct 2018 04:08:32 +0000 (15:08 +1100)
commit0346ad37741b11d640c1c4970b275c1f0c7f9e75
tree6e10da82ec0d579dd29d897e73903996d4af7d8c
parentb44c9292b7e5a24e6b06a197d4e72b43a8799d09
glsl: ignore trailing whitespace when define redefined

The Nvidia/AMD binary drivers allow this, as does GCC.

This fixes shader compilation issues in the latest update of
No Mans Sky.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/glsl/glcpp/glcpp-parse.y
src/compiler/glsl/glcpp/tests/122-redefine-whitespace.c
src/compiler/glsl/glcpp/tests/122-redefine-whitespace.c.expected