Commit c9ee1b0b authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

d3d9: Handle stateblocks in d3d9_device_SetRenderState().

parent 3c24654d
...@@ -2273,6 +2273,8 @@ static HRESULT WINAPI DECLSPEC_HOTPATCH d3d9_device_SetRenderState(IDirect3DDevi ...@@ -2273,6 +2273,8 @@ static HRESULT WINAPI DECLSPEC_HOTPATCH d3d9_device_SetRenderState(IDirect3DDevi
{ {
wined3d_color_from_d3dcolor(&factor, value); wined3d_color_from_d3dcolor(&factor, value);
wined3d_mutex_lock(); wined3d_mutex_lock();
wined3d_stateblock_set_blend_factor(device->update_state, &factor);
if (!device->recording)
wined3d_device_set_blend_state(device->wined3d_device, NULL, &factor); wined3d_device_set_blend_state(device->wined3d_device, NULL, &factor);
wined3d_mutex_unlock(); wined3d_mutex_unlock();
...@@ -2280,6 +2282,8 @@ static HRESULT WINAPI DECLSPEC_HOTPATCH d3d9_device_SetRenderState(IDirect3DDevi ...@@ -2280,6 +2282,8 @@ static HRESULT WINAPI DECLSPEC_HOTPATCH d3d9_device_SetRenderState(IDirect3DDevi
} }
wined3d_mutex_lock(); wined3d_mutex_lock();
wined3d_stateblock_set_render_state(device->update_state, state, value);
if (!device->recording)
wined3d_device_set_render_state(device->wined3d_device, state, value); wined3d_device_set_render_state(device->wined3d_device, state, value);
wined3d_mutex_unlock(); wined3d_mutex_unlock();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment