wined3d: Jump to the else branch if cond is false, not endif.

This commit is contained in:
Stefan Dösinger 2009-06-25 19:18:39 +02:00 committed by Alexandre Julliard
parent a07b50c94c
commit 8fb1e2acfb
1 changed files with 1 additions and 1 deletions

View File

@ -2707,7 +2707,7 @@ static void shader_hw_ifc(const struct wined3d_shader_instruction *ins)
/* Invert the flag. We jump to the else label if the condition is NOT true */
comp = get_compare(invert_compare(ins->flags));
shader_addline(buffer, "SUBC TA, %s, %s;\n", src_name0, src_name1);
shader_addline(buffer, "BRA ifc_%u_endif (%s.x);\n", control_frame->ifc_no, comp);
shader_addline(buffer, "BRA ifc_%u_else (%s.x);\n", control_frame->ifc_no, comp);
}
else
{