diff options
author | Kenneth Graunke <[email protected]> | 2010-08-21 20:23:18 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-08-26 09:19:48 -0700 |
commit | e9c7ceed27f6811ad1cae46c93ce9bc3fb3668d8 (patch) | |
tree | e66302bca944353decf9b78291effb9cee7a4982 /src/glsl/builtins/tools/generate_builtins.py | |
parent | 86ddb356e8278423ef41125be627e57e073471d1 (diff) |
glsl: Use a single shared namespace in the symbol table.
As of 1.20, variable names, function names, and structure type names all
share a single namespace, and should conflict with one another in the
same scope, or hide each other in nested scopes.
However, in 1.10, variables and functions can share the same name in the
same scope. Structure types, however, conflict with/hide both.
Fixes piglit tests redeclaration-06.vert, redeclaration-11.vert,
redeclaration-19.vert, and struct-05.vert.
Diffstat (limited to 'src/glsl/builtins/tools/generate_builtins.py')
-rwxr-xr-x | src/glsl/builtins/tools/generate_builtins.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/builtins/tools/generate_builtins.py b/src/glsl/builtins/tools/generate_builtins.py index c72b5b3bc1c..b9f0ba1ad22 100755 --- a/src/glsl/builtins/tools/generate_builtins.py +++ b/src/glsl/builtins/tools/generate_builtins.py @@ -133,6 +133,7 @@ read_builtins(GLenum target, const char *protos, const char **functions, unsigne new(sh) _mesa_glsl_parse_state(NULL, target, sh); st->language_version = 130; + st->symbols->language_version = 130; st->ARB_texture_rectangle_enable = true; st->EXT_texture_array_enable = true; _mesa_glsl_initialize_types(st); |