OSDN Git Service

glsl: Set default language version in mesa_glsl_parse_state constructor.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 5 Sep 2010 07:31:28 +0000 (00:31 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 8 Sep 2010 00:30:37 +0000 (17:30 -0700)
commit814c89abdbcd5b841b98746af921796df0362238
tree7286d59bd66ed267037896bada25190ceedc26c2
parent4a867be14378587574b3082071e9fff962d28d12
glsl: Set default language version in mesa_glsl_parse_state constructor.

This should make it easier to change the default version based on the
API (say, version 1.00 for OpenGL ES).

Also, synchronize the symbol table's version with the parse state's
version just before doing AST-to-HIR.  This way, it will be set when
it matters, but the main initialization code doesn't have to care about
the symbol table.
src/glsl/ast_to_hir.cpp
src/glsl/glsl_parser.cpp
src/glsl/glsl_parser.ypp
src/glsl/glsl_parser_extras.cpp