Ivan Gyurdiev : wined3d: Fix _dw modifier.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Apr 18 05:13:47 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 7e5f734ee37d14fc89a391f55aa445b10d830261
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=7e5f734ee37d14fc89a391f55aa445b10d830261
Author: Ivan Gyurdiev <ivg2 at cornell.edu>
Date: Sat Apr 15 17:06:52 2006 -0400
wined3d: Fix _dw modifier.
The _dw modifier needs to specify a component swizzle, just like the
_dz currently does.
---
dlls/wined3d/pixelshader.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/pixelshader.c b/dlls/wined3d/pixelshader.c
index 56b7cd6..f0d5f8c 100644
--- a/dlls/wined3d/pixelshader.c
+++ b/dlls/wined3d/pixelshader.c
@@ -940,7 +940,7 @@ inline static int gen_input_modifier_lin
strcat(line, tmpline);
break;
case D3DSPSM_DW:
- sprintf(line, "RCP T%c, %s;", 'A' + tmpreg, regstr);
+ sprintf(line, "RCP T%c, %s.w;", 'A' + tmpreg, regstr);
sprintf(tmpline, "MUL T%c, %s, T%c;", 'A' + tmpreg, regstr, 'A' + tmpreg);
strcat(line, "\n"); /* Hack */
strcat(line, tmpline);
More information about the wine-cvs
mailing list