Zebediah Figura : ddraw: Stop setting the device state when setting textures.
Alexandre Julliard
julliard at winehq.org
Thu Feb 27 17:15:10 CST 2020
Module: wine
Branch: master
Commit: a3931b40e7f89cf6c421fdde8f70df1b4a5b89ec
URL: https://source.winehq.org/git/wine.git/?a=commit;h=a3931b40e7f89cf6c421fdde8f70df1b4a5b89ec
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Wed Feb 26 16:39:26 2020 -0600
ddraw: Stop setting the device state when setting textures.
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/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;
More information about the wine-cvs
mailing list