[PATCH] WineD3D: Correct a stage number=0A=

Stefan Doesinger stefan at codeweavers.com
Thu Dec 11 23:11:30 CST 2008


=0A=
I don't see anything special with stage 1, but if stage 0 is=0A=
disabled we have to make sure to read the value properly=0A=
---=0A=
 dlls/wined3d/arb_program_shader.c |    2 +-=0A=
 1 files changed, 1 insertions(+), 1 deletions(-)=0A=
=0A=
diff --git a/dlls/wined3d/arb_program_shader.c =
b/dlls/wined3d/arb_program_shader.c=0A=
index 2732bae..009cefb 100644=0A=
--- a/dlls/wined3d/arb_program_shader.c=0A=
+++ b/dlls/wined3d/arb_program_shader.c=0A=
@@ -2508,7 +2508,7 @@ static void gen_ffp_instr(SHADER_BUFFER *buffer, =
unsigned int stage, BOOL color,=0A=
 =0A=
     switch(op) {=0A=
         case WINED3DTOP_DISABLE:=0A=
-            if(stage =3D=3D 1) shader_addline(buffer, "MOV %s%s, =
fragment.color.primary;\n", dstreg, dstmask);=0A=
+            if(stage =3D=3D 0) shader_addline(buffer, "MOV %s%s, =
fragment.color.primary;\n", dstreg, dstmask);=0A=
             break;=0A=
 =0A=
         case WINED3DTOP_SELECTARG2:=0A=
-- =0A=
1.5.6.4=0A=
=0A=

------=_NextPart_000_0049_01C95EEF.04057130--




More information about the wine-patches mailing list