Add generate_temporary to generate an anonymous temporary

This commit is contained in:
Ian Romanick
2010-03-29 15:20:42 -07:00
parent 6e659caaa9
commit 5185a5f7d5
3 changed files with 24 additions and 0 deletions
+1
View File
@@ -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);