AST dump: fixed printing of conditionals.
authorPaul Berry <stereotype441@gmail.com>
Fri, 3 Jun 2011 17:02:32 +0000 (10:02 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 3 Jun 2011 17:07:00 +0000 (11:07 -0600)
commit26b566e19cbfa189a6a158718f21859c0b7ed090
tree7df86c5b287313bf9e863ecead424efc16047ab9
parent4077336fc79353ca369dc5865f5fada920fc96e0
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 <brianp@vmware.com>
src/glsl/glsl_parser_extras.cpp