diff options
author | Ian Romanick <[email protected]> | 2016-11-08 11:14:49 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-11-10 10:57:59 -0800 |
commit | c8c46641af43edd106528ac0293db5aa02a2364e (patch) | |
tree | 1627da2088c9fd8f1c1842cb87c7702a411458b7 /src/mapi/glapi/glapi_entrypoint.c | |
parent | e85a747e294762785df2ce8a299c153254c6fca2 (diff) |
glsl: Parse 0 as a preprocessor INTCONSTANT
This allows a more reasonable error message for '#version 0' of
0:1(10): error: GLSL 0.00 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES
instead of
0:1(10): error: syntax error, unexpected $undefined, expecting INTCONSTANT
Signed-off-by: Ian Romanick <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97420
Reviewed-by: Nicolai Hähnle <[email protected]>
Cc: [email protected]
Cc: Juan A. Suarez Romero <[email protected]>
Cc: Karol Herbst <[email protected]>
Diffstat (limited to 'src/mapi/glapi/glapi_entrypoint.c')
0 files changed, 0 insertions, 0 deletions