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

ddraw: Handle stateblocks in d3d_device7_SetTexture().

parent 6f97c24b
...@@ -4811,7 +4811,9 @@ static HRESULT d3d_device7_SetTexture(IDirect3DDevice7 *iface, ...@@ -4811,7 +4811,9 @@ static HRESULT d3d_device7_SetTexture(IDirect3DDevice7 *iface,
wined3d_texture = surf->wined3d_texture; wined3d_texture = surf->wined3d_texture;
wined3d_mutex_lock(); wined3d_mutex_lock();
wined3d_device_set_texture(device->wined3d_device, stage, wined3d_texture); 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(); 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