[PATCH 3/5] ddraw: Stop setting the device state when setting textures.

Zebediah Figura z.figura12 at gmail.com
Wed Feb 26 16:39:26 CST 2020


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

diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c
index 575050acd2..f189d32d95 100644
--- a/dlls/ddraw/device.c
+++ b/dlls/ddraw/device.c
@@ -2758,7 +2758,6 @@ static HRESULT WINAPI d3d_device3_SetRenderState(IDirect3DDevice3 *iface,
             if (value == 0)
             {
                 wined3d_stateblock_set_texture(device->state, 0, NULL);
-                wined3d_device_set_texture(device->wined3d_device, 0, NULL);
                 hr = D3D_OK;
                 break;
             }
@@ -4849,8 +4848,6 @@ static HRESULT d3d_device7_SetTexture(IDirect3DDevice7 *iface,
 
     wined3d_mutex_lock();
     wined3d_stateblock_set_texture(device->update_state, stage, wined3d_texture);
-    if (!device->recording)
-        wined3d_device_set_texture(device->wined3d_device, stage, wined3d_texture);
     wined3d_mutex_unlock();
 
     return D3D_OK;
-- 
2.25.0




More information about the wine-devel mailing list