Zebediah Figura : d3d8: Retrieve transform states from the primary stateblock.

Alexandre Julliard julliard at winehq.org
Tue Feb 25 17:23:07 CST 2020


Module: wine
Branch: master
Commit: cc7d556212cc63032cfe82668892d26e9114c837
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=cc7d556212cc63032cfe82668892d26e9114c837

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Mon Feb 24 16:11:35 2020 -0600

d3d8: Retrieve transform states from the primary stateblock.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3d8/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c
index 5e18f64550..8ce38e2d9e 100644
--- a/dlls/d3d8/device.c
+++ b/dlls/d3d8/device.c
@@ -1636,7 +1636,7 @@ static HRESULT WINAPI d3d8_device_GetTransform(IDirect3DDevice8 *iface,
 
     /* Note: D3DMATRIX is compatible with struct wined3d_matrix. */
     wined3d_mutex_lock();
-    wined3d_device_get_transform(device->wined3d_device, state, (struct wined3d_matrix *)matrix);
+    memcpy(matrix, &wined3d_stateblock_get_state(device->state)->transforms[state], sizeof(*matrix));
     wined3d_mutex_unlock();
 
     return D3D_OK;




More information about the wine-cvs mailing list