wined3d: Fix _dw modifier.

The _dw modifier needs to specify a component swizzle, just like the
_dz currently does.
This commit is contained in:
Ivan Gyurdiev 2006-04-15 17:06:52 -04:00 committed by Alexandre Julliard
parent d3d56e765d
commit 7e5f734ee3
1 changed files with 1 additions and 1 deletions

View File

@ -940,7 +940,7 @@ inline static int gen_input_modifier_line(const DWORD instr, int tmpreg, char *o
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);