Stefan Dösinger : wined3d: Jump to the else branch if cond is false, not endif.

Alexandre Julliard julliard at winehq.org
Fri Jun 26 09:47:10 CDT 2009


Module: wine
Branch: master
Commit: 8fb1e2acfbadde8a2ba52a191098d87432283335
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8fb1e2acfbadde8a2ba52a191098d87432283335

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Thu Jun 25 19:18:39 2009 +0200

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

---

 dlls/wined3d/arb_program_shader.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c
index bc99dd4..aa8d068 100644
--- a/dlls/wined3d/arb_program_shader.c
+++ b/dlls/wined3d/arb_program_shader.c
@@ -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
     {




More information about the wine-cvs mailing list