[PATCH 3/4] d3d8: Stop setting the device state in d3d8_device_SetRenderState().

Zebediah Figura z.figura12 at gmail.com
Tue Jan 28 22:45:12 CST 2020


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

diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c
index 4c2c350ec2..b0a0491890 100644
--- a/dlls/d3d8/device.c
+++ b/dlls/d3d8/device.c
@@ -1885,8 +1885,6 @@ static HRESULT WINAPI d3d8_device_SetRenderState(IDirect3DDevice8 *iface,
     if (state == D3DRS_ZBIAS)
         state = WINED3D_RS_DEPTHBIAS;
     wined3d_stateblock_set_render_state(device->update_state, state, value);
-    if (!device->recording)
-        wined3d_device_set_render_state(device->wined3d_device, state, value);
     if (state == D3DRS_POINTSIZE && value == D3D8_RESZ_CODE)
         resolve_depth_buffer(device);
     wined3d_mutex_unlock();
-- 
2.25.0




More information about the wine-devel mailing list