glsl/glcpp: Do not allow undefining the built-in macros
authorAnuj Phogat <anuj.phogat@gmail.com>
Fri, 6 Jun 2014 23:56:58 +0000 (16:56 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 9 Jul 2014 19:05:13 +0000 (12:05 -0700)
commit64b7fc2dd16cd4a4966a4ed8e9f239c53715f1d5
tree9879696ba0c258ea12583bf7f9f75ea8a28d8036
parent378fa34c7b8ea29672deea7563c552a8e2742809
glsl/glcpp: Do not allow undefining the built-in macros

Fixes piglit tests in spec/glsl-es-3.00/compile:
undef-__FILE__.vert
undef-GL_ES.vert
undef-__LINE__.vert
undef-__VERSION__.vert

Also, fixes Khronos GLES3 CTS tests:
undefine_invalid_object_1_vertex
undefine_invalid_object_1_fragment
undefine_invalid_object_2_vertex
undefine_invalid_object_2_fragment

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Carl Worth <cworth@cworth.org>
src/glsl/glcpp/glcpp-parse.y