wined3d: Use shader_get_regtype() in register counting pass.
This commit is contained in:
parent
d06e13db99
commit
fd896d8652
|
@ -410,7 +410,7 @@ void shader_get_registers_used(
|
|||
DWORD param, addr_token, reg, regtype;
|
||||
pToken += shader_get_param(iface, pToken, ¶m, &addr_token);
|
||||
|
||||
regtype = (param & D3DSP_REGTYPE_MASK) >> D3DSP_REGTYPE_SHIFT;
|
||||
regtype = shader_get_regtype(param);
|
||||
reg = param & D3DSP_REGNUM_MASK;
|
||||
|
||||
if (D3DSPR_TEXTURE == regtype) { /* vs: D3DSPR_ADDR */
|
||||
|
|
Loading…
Reference in New Issue