diff options
author | Eric Anholt <[email protected]> | 2012-01-28 11:26:02 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-02-03 11:06:50 +0100 |
commit | 22d81f154fed9e004cca91807808ae3b81b01ced (patch) | |
tree | ee39e66020ecb289915ca90489bc9f621275b0e7 /src/glsl/glsl_parser_extras.cpp | |
parent | b8c9252570d126e06607cd28b14f0fe3a2ffe4cf (diff) |
glsl: Save and restore the whole switch state for nesting.
This stuffs them all in a struct for sanity. Fixes piglit
glsl-1.30/execution/switch/fs-uniform-nested.
NOTE: This is a candidate for the 8.0 branch.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/glsl_parser_extras.cpp')
-rw-r--r-- | src/glsl/glsl_parser_extras.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index 7f8d47ce9bc..2a72ba1f6f9 100644 --- a/src/glsl/glsl_parser_extras.cpp +++ b/src/glsl/glsl_parser_extras.cpp @@ -51,7 +51,7 @@ _mesa_glsl_parse_state::_mesa_glsl_parse_state(struct gl_context *ctx, this->info_log = ralloc_strdup(mem_ctx, ""); this->error = false; this->loop_nesting_ast = NULL; - this->switch_nesting_ast = NULL; + this->switch_state.switch_nesting_ast = NULL; this->num_builtins_to_link = 0; |