ddraw: Stop setting the device state when setting textures.
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
7b3419375d
commit
a3931b40e7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue