Trace after the matrix has been copied, not before.

This commit is contained in:
Lionel Ulmer 2003-02-12 21:34:46 +00:00 committed by Alexandre Julliard
parent 8b56deb85f
commit db9b5f74dc
1 changed files with 3 additions and 3 deletions

View File

@ -412,27 +412,27 @@ Main_IDirect3DDeviceImpl_7_3T_2T_GetTransform(LPDIRECT3DDEVICE7 iface,
switch (dtstTransformStateType) { switch (dtstTransformStateType) {
case D3DTRANSFORMSTATE_WORLD: { case D3DTRANSFORMSTATE_WORLD: {
memcpy(lpD3DMatrix, This->world_mat, 16 * sizeof(D3DVALUE));
if (TRACE_ON(ddraw)) { if (TRACE_ON(ddraw)) {
TRACE(" returning D3DTRANSFORMSTATE_WORLD :\n"); TRACE(" returning D3DTRANSFORMSTATE_WORLD :\n");
dump_D3DMATRIX(lpD3DMatrix); dump_D3DMATRIX(lpD3DMatrix);
} }
memcpy(lpD3DMatrix, This->world_mat, 16 * sizeof(D3DVALUE));
} break; } break;
case D3DTRANSFORMSTATE_VIEW: { case D3DTRANSFORMSTATE_VIEW: {
memcpy(lpD3DMatrix, This->view_mat, 16 * sizeof(D3DVALUE));
if (TRACE_ON(ddraw)) { if (TRACE_ON(ddraw)) {
TRACE(" returning D3DTRANSFORMSTATE_VIEW :\n"); TRACE(" returning D3DTRANSFORMSTATE_VIEW :\n");
dump_D3DMATRIX(lpD3DMatrix); dump_D3DMATRIX(lpD3DMatrix);
} }
memcpy(lpD3DMatrix, This->view_mat, 16 * sizeof(D3DVALUE));
} break; } break;
case D3DTRANSFORMSTATE_PROJECTION: { case D3DTRANSFORMSTATE_PROJECTION: {
memcpy(lpD3DMatrix, This->proj_mat, 16 * sizeof(D3DVALUE));
if (TRACE_ON(ddraw)) { if (TRACE_ON(ddraw)) {
TRACE(" returning D3DTRANSFORMSTATE_PROJECTION :\n"); TRACE(" returning D3DTRANSFORMSTATE_PROJECTION :\n");
dump_D3DMATRIX(lpD3DMatrix); dump_D3DMATRIX(lpD3DMatrix);
} }
memcpy(lpD3DMatrix, This->proj_mat, 16 * sizeof(D3DVALUE));
} break; } break;
default: default: