Commit 290f0fd3 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ddraw: Handle stateblocks in d3d_device7_SetTextureStageState().

parent 16291e52
......@@ -5125,18 +5125,20 @@ static HRESULT d3d_device7_SetTextureStageState(IDirect3DDevice7 *iface,
}
case D3DTSS_ADDRESS:
wined3d_device_set_sampler_state(device->wined3d_device, stage, WINED3D_SAMP_ADDRESS_V, value);
d3d_device_set_sampler_state(device, stage, WINED3D_SAMP_ADDRESS_V, value);
break;
default:
break;
}
wined3d_device_set_sampler_state(device->wined3d_device, stage, l->u.sampler_state, value);
d3d_device_set_sampler_state(device, stage, l->u.sampler_state, value);
}
else
{
wined3d_device_set_texture_stage_state(device->wined3d_device, stage, l->u.texture_state, value);
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();
......
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