summaryrefslogtreecommitdiff
path: root/glsl_parser_extras.cpp
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-04-05 17:01:53 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-04-07 11:42:36 -0700
commite9d0f265aabb39928d4d8a527684bf3b9eebc21c (patch)
treed9d7946a8314352fe8d510f0db5ec1df3ee760ec /glsl_parser_extras.cpp
parentc0e76d8352fbe96efb0338e9d98b08494671e504 (diff)
Begin tracking the nesting of loops and switch-statements
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 538d77c..877b165 100644
--- a/glsl_parser_extras.cpp
+++ b/glsl_parser_extras.cpp
@@ -637,6 +637,7 @@ main(int argc, char **argv)
state.symbols = new glsl_symbol_table;
state.error = false;
state.temp_index = 0;
+ state.loop_or_switch_nesting = NULL;
_mesa_glsl_lexer_ctor(& state, shader, shader_len);
_mesa_glsl_parse(& state);