[PATCH 2/4] d3d9: Stop setting the device state in d3d9_device_SetMaterial().

Zebediah Figura z.figura12 at gmail.com
Mon Feb 17 17:19:51 CST 2020


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/d3d9/device.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index 802a974f34..ac03c7e241 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -2193,8 +2193,6 @@ static HRESULT WINAPI d3d9_device_SetMaterial(IDirect3DDevice9Ex *iface, const D
     /* Note: D3DMATERIAL9 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;
-- 
2.25.0




More information about the wine-devel mailing list