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

ddraw: Stop setting the device state when setting textures.

parent 7b341937
......@@ -2758,7 +2758,6 @@ static HRESULT WINAPI d3d_device3_SetRenderState(IDirect3DDevice3 *iface,
if (value == 0)
{
wined3d_stateblock_set_texture(device->state, 0, NULL);
wined3d_device_set_texture(device->wined3d_device, 0, NULL);
hr = D3D_OK;
break;
}
......@@ -4849,8 +4848,6 @@ static HRESULT d3d_device7_SetTexture(IDirect3DDevice7 *iface,
wined3d_mutex_lock();
wined3d_stateblock_set_texture(device->update_state, stage, wined3d_texture);
if (!device->recording)
wined3d_device_set_texture(device->wined3d_device, stage, wined3d_texture);
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