glsl/parser: Handle "#version 300 es" directive.
authorPaul Berry <stereotype441@gmail.com>
Thu, 2 Aug 2012 18:17:30 +0000 (11:17 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 6 Dec 2012 20:13:22 +0000 (12:13 -0800)
commit2b4aeddfb3cdae95d69e7f46eac87514f372f531
treecb5a3d84c80f18014fb6a0384b25afac078cf5da
parent629b9edc99a0b662cf907b9e068be2fd6ac5ae26
glsl/parser: Handle "#version 300 es" directive.

Note that GLSL 1.00 is selected using "#version 100", so "#version 100
es" is prohibited.

v2: Check for GLES3 before allowing '#version 300 es'

v3: Make sure a correct language_version is set in
_mesa_glsl_parse_state::process_version_directive.

Signed-off-by: Paul Berry <stereotype441@gmail.com>
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Carl Worth <cworth@cworth.org>
src/glsl/glsl_parser.yy
src/glsl/glsl_parser_extras.cpp
src/glsl/glsl_parser_extras.h