diff options
author | Paul Berry <[email protected]> | 2011-06-03 10:02:32 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-06-03 11:07:00 -0600 |
commit | 26b566e19cbfa189a6a158718f21859c0b7ed090 (patch) | |
tree | 7df86c5b287313bf9e863ecead424efc16047ab9 | |
parent | 4077336fc79353ca369dc5865f5fada920fc96e0 (diff) |
AST dump: fixed printing of conditionals.
ast_expression::print() had an incorrect index into the subexpressions
array, so (a ? b : c) was being incorrectly rendered as (a ? b : b).
Signed-off-by: Brian Paul <[email protected]>
-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 fce2faa758b..d9aa300bbe4 100644 --- a/src/glsl/glsl_parser_extras.cpp +++ b/src/glsl/glsl_parser_extras.cpp @@ -436,7 +436,7 @@ ast_expression::print(void) const printf("? "); subexpressions[1]->print(); printf(": "); - subexpressions[1]->print(); + subexpressions[2]->print(); break; case ast_array_index: |