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

d3d8: Stop setting the device state in d3d8_device_SetTextureStageState().

parent 942e2100
......@@ -2306,17 +2306,9 @@ static HRESULT WINAPI d3d8_device_SetTextureStageState(IDirect3DDevice8 *iface,
wined3d_mutex_lock();
if (l->sampler_state)
{
wined3d_stateblock_set_sampler_state(device->update_state, stage, l->u.sampler_state, value);
if (!device->recording)
wined3d_device_set_sampler_state(device->wined3d_device, stage, l->u.sampler_state, value);
}
else
{
wined3d_stateblock_set_texture_stage_state(device->update_state, stage, l->u.texture_state, value);
if (!device->recording)
wined3d_device_set_texture_stage_state(device->wined3d_device, stage, l->u.texture_state, value);
}
wined3d_mutex_unlock();
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