ir_to_mesa: Traverse the "else" instrs after "else", instead of "then" again.

This commit is contained in:
Eric Anholt
2010-06-28 11:44:30 -07:00
parent 3f3f41357d
commit 0a52e8b691

View File

@@ -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,