aboutsummaryrefslogtreecommitdiffstats
path: root/glsl_parser_extras.cpp
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-03-29 15:20:42 -0700
committerIan Romanick <[email protected]>2010-03-29 15:20:42 -0700
commit5185a5f7d5654c9202c226015c4daeee43d9b897 (patch)
tree903ae4b09d0368ff77b2a2fee746bb813025ec08 /glsl_parser_extras.cpp
parent6e659caaa946339a2de3890a8bed091ccb65102a (diff)
Add generate_temporary to generate an anonymous temporary
Diffstat (limited to 'glsl_parser_extras.cpp')
-rw-r--r--glsl_parser_extras.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/glsl_parser_extras.cpp b/glsl_parser_extras.cpp
index d57a68efb75..1ddc2ee9ddd 100644
--- a/glsl_parser_extras.cpp
+++ b/glsl_parser_extras.cpp
@@ -634,6 +634,7 @@ main(int argc, char **argv)
make_empty_list(& state.translation_unit);
state.symbols = new glsl_symbol_table;
state.error = false;
+ state.temp_index = 0;
_mesa_glsl_lexer_ctor(& state, shader, shader_len);
_mesa_glsl_parse(& state);