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

d3d8: Handle stateblocks in d3d8_device_SetRenderState().

parent c9ee1b0b
...@@ -1827,15 +1827,11 @@ static HRESULT WINAPI d3d8_device_SetRenderState(IDirect3DDevice8 *iface, ...@@ -1827,15 +1827,11 @@ static HRESULT WINAPI d3d8_device_SetRenderState(IDirect3DDevice8 *iface,
TRACE("iface %p, state %#x, value %#x.\n", iface, state, value); TRACE("iface %p, state %#x, value %#x.\n", iface, state, value);
wined3d_mutex_lock(); wined3d_mutex_lock();
switch (state) if (state == D3DRS_ZBIAS)
{ state = WINED3D_RS_DEPTHBIAS;
case D3DRS_ZBIAS: wined3d_stateblock_set_render_state(device->update_state, state, value);
wined3d_device_set_render_state(device->wined3d_device, WINED3D_RS_DEPTHBIAS, value); if (!device->recording)
break; wined3d_device_set_render_state(device->wined3d_device, state, value);
default:
wined3d_device_set_render_state(device->wined3d_device, state, value);
}
wined3d_mutex_unlock(); wined3d_mutex_unlock();
return D3D_OK; return D3D_OK;
......
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