[PATCH 2/3] ddraw: Stop setting the device state in d3d_device7_SetRenderState().
Zebediah Figura
z.figura12 at gmail.com
Thu Jan 30 21:26:06 CST 2020
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
dlls/ddraw/device.c | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c
index 6cd8948f56..3a35eaeb5e 100644
--- a/dlls/ddraw/device.c
+++ b/dlls/ddraw/device.c
@@ -2501,14 +2501,6 @@ static HRESULT WINAPI d3d_device2_GetRenderState(IDirect3DDevice2 *iface,
return IDirect3DDevice3_GetRenderState(&device->IDirect3DDevice3_iface, state, value);
}
-static void d3d_device_set_render_state(struct d3d_device *device,
- enum wined3d_render_state state, DWORD value)
-{
- wined3d_stateblock_set_render_state(device->update_state, state, value);
- if (!device->recording)
- wined3d_device_set_render_state(device->wined3d_device, state, value);
-}
-
static void d3d_device_set_sampler_state(struct d3d_device *device,
UINT sampler_idx, enum wined3d_sampler_state state, DWORD value)
{
@@ -2649,7 +2641,7 @@ static HRESULT d3d_device7_SetRenderState(IDirect3DDevice7 *iface,
break;
case D3DRENDERSTATE_ZBIAS:
- d3d_device_set_render_state(device, WINED3D_RS_DEPTHBIAS, value);
+ wined3d_stateblock_set_render_state(device->update_state, WINED3D_RS_DEPTHBIAS, value);
break;
default:
@@ -2661,7 +2653,7 @@ static HRESULT d3d_device7_SetRenderState(IDirect3DDevice7 *iface,
break;
}
- d3d_device_set_render_state(device, state, value);
+ wined3d_stateblock_set_render_state(device->update_state, state, value);
break;
}
wined3d_mutex_unlock();
--
2.25.0
More information about the wine-devel
mailing list