Commit 7e5f734e authored by Ivan Gyurdiev's avatar Ivan Gyurdiev Committed by Alexandre Julliard

wined3d: Fix _dw modifier.

The _dw modifier needs to specify a component swizzle, just like the _dz currently does.
parent d3d56e76
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment