Commit db9b5f74 authored by Lionel Ulmer's avatar Lionel Ulmer Committed by Alexandre Julliard

Trace after the matrix has been copied, not before.

parent 8b56deb8
...@@ -412,27 +412,27 @@ Main_IDirect3DDeviceImpl_7_3T_2T_GetTransform(LPDIRECT3DDEVICE7 iface, ...@@ -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:
......
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