summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-06-28 11:44:30 -0700
committerEric Anholt <eric@anholt.net>2010-06-28 11:45:10 -0700
commit0a52e8b691cecfeec27717c3289763226d5f1bda (patch)
tree38000a49ffcc0da6e20572f41d66be98e13cfa1e /src/mesa
parent3f3f41357d33893d01213b37c6d92bcb435b0eeb (diff)
ir_to_mesa: Traverse the "else" instrs after "else", instead of "then" again.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/shader/ir_to_mesa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/ir_to_mesa.cpp b/src/mesa/shader/ir_to_mesa.cpp
index b8113dab2b..a825bf9e67 100644
--- a/src/mesa/shader/ir_to_mesa.cpp
+++ b/src/mesa/shader/ir_to_mesa.cpp
@@ -1159,7 +1159,7 @@ ir_to_mesa_visitor::visit(ir_if *ir)
else_inst = ir_to_mesa_emit_op1(ir->condition, OPCODE_ELSE,
ir_to_mesa_undef_dst,
ir_to_mesa_undef);
- visit_exec_list(&ir->then_instructions, this);
+ visit_exec_list(&ir->else_instructions, this);
}
if_inst = ir_to_mesa_emit_op1(ir->condition, OPCODE_ENDIF,