ddraw: Handle stateblocks in d3d_device7_SetTexture().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6f97c24b6e
commit
d4cfa070cb
|
@ -4811,6 +4811,8 @@ static HRESULT d3d_device7_SetTexture(IDirect3DDevice7 *iface,
|
||||||
wined3d_texture = surf->wined3d_texture;
|
wined3d_texture = surf->wined3d_texture;
|
||||||
|
|
||||||
wined3d_mutex_lock();
|
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_device_set_texture(device->wined3d_device, stage, wined3d_texture);
|
||||||
wined3d_mutex_unlock();
|
wined3d_mutex_unlock();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue