ddraw: Use correct union member.
This commit is contained in:
parent
387f24f467
commit
882716e78b
|
@ -227,14 +227,14 @@ IDirect3DExecuteBufferImpl_Execute(IDirect3DExecuteBufferImpl *This,
|
||||||
} else if(lpDevice->Handles[ci->u2.dwArg[0] - 1].type != DDrawHandle_Matrix) {
|
} else if(lpDevice->Handles[ci->u2.dwArg[0] - 1].type != DDrawHandle_Matrix) {
|
||||||
ERR("Handle %d is not a matrix handle\n", ci->u2.dwArg[0]);
|
ERR("Handle %d is not a matrix handle\n", ci->u2.dwArg[0]);
|
||||||
} else {
|
} else {
|
||||||
if(ci->u1.drstRenderStateType == D3DTRANSFORMSTATE_WORLD)
|
if(ci->u1.dtstTransformStateType == D3DTRANSFORMSTATE_WORLD)
|
||||||
lpDevice->world = ci->u2.dwArg[0];
|
lpDevice->world = ci->u2.dwArg[0];
|
||||||
if(ci->u1.drstRenderStateType == D3DTRANSFORMSTATE_VIEW)
|
if(ci->u1.dtstTransformStateType == D3DTRANSFORMSTATE_VIEW)
|
||||||
lpDevice->view = ci->u2.dwArg[0];
|
lpDevice->view = ci->u2.dwArg[0];
|
||||||
if(ci->u1.drstRenderStateType == D3DTRANSFORMSTATE_PROJECTION)
|
if(ci->u1.dtstTransformStateType == D3DTRANSFORMSTATE_PROJECTION)
|
||||||
lpDevice->proj = ci->u2.dwArg[0];
|
lpDevice->proj = ci->u2.dwArg[0];
|
||||||
IDirect3DDevice7_SetTransform((IDirect3DDevice7 *)lpDevice,
|
IDirect3DDevice7_SetTransform((IDirect3DDevice7 *)lpDevice,
|
||||||
ci->u1.drstRenderStateType, (LPD3DMATRIX)lpDevice->Handles[ci->u2.dwArg[0] - 1].ptr);
|
ci->u1.dtstTransformStateType, (LPD3DMATRIX)lpDevice->Handles[ci->u2.dwArg[0] - 1].ptr);
|
||||||
}
|
}
|
||||||
instr += size;
|
instr += size;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue