[PATCH 3/4] d3d9: Handle stateblocks in d3d9_device_SetRenderState().
Zebediah Figura
z.figura12 at gmail.com
Thu Oct 3 19:38:06 CDT 2019
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
dlls/d3d9/device.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index ee5de2f06fd..3d16812d59e 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -2273,14 +2273,18 @@ static HRESULT WINAPI DECLSPEC_HOTPATCH d3d9_device_SetRenderState(IDirect3DDevi
{
wined3d_color_from_d3dcolor(&factor, value);
wined3d_mutex_lock();
- wined3d_device_set_blend_state(device->wined3d_device, NULL, &factor);
+ wined3d_stateblock_set_blend_factor(device->update_state, &factor);
+ if (!device->recording)
+ wined3d_device_set_blend_state(device->wined3d_device, NULL, &factor);
wined3d_mutex_unlock();
return D3D_OK;
}
wined3d_mutex_lock();
- wined3d_device_set_render_state(device->wined3d_device, state, value);
+ wined3d_stateblock_set_render_state(device->update_state, state, value);
+ if (!device->recording)
+ wined3d_device_set_render_state(device->wined3d_device, state, value);
wined3d_mutex_unlock();
return D3D_OK;
--
2.23.0
More information about the wine-devel
mailing list