Zebediah Figura : d3d8: Stop setting the device state in d3d8_device_SetMaterial().
Alexandre Julliard
julliard at winehq.org
Tue Feb 25 17:23:08 CST 2020
Module: wine
Branch: master
Commit: 6c0c191a312184fd3ce2b20579db9ceed3063f30
URL: https://source.winehq.org/git/wine.git/?a=commit;h=6c0c191a312184fd3ce2b20579db9ceed3063f30
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Mon Feb 24 16:11:40 2020 -0600
d3d8: Stop setting the device state in d3d8_device_SetMaterial().
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, 2 deletions(-)
diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c
index 8fe43c0cca..e7c79d54a0 100644
--- a/dlls/d3d8/device.c
+++ b/dlls/d3d8/device.c
@@ -1727,8 +1727,6 @@ static HRESULT WINAPI d3d8_device_SetMaterial(IDirect3DDevice8 *iface, const D3D
/* Note: D3DMATERIAL8 is compatible with struct wined3d_material. */
wined3d_mutex_lock();
wined3d_stateblock_set_material(device->update_state, (const struct wined3d_material *)material);
- if (!device->recording)
- wined3d_device_set_material(device->wined3d_device, (const struct wined3d_material *)material);
wined3d_mutex_unlock();
return D3D_OK;
More information about the wine-cvs
mailing list