d3d8: Handle stateblocks in d3d8_device_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
95545a6667
commit
6f97c24b6e
|
@ -2135,8 +2135,11 @@ static HRESULT WINAPI d3d8_device_SetTexture(IDirect3DDevice8 *iface, DWORD stag
|
|||
texture_impl = unsafe_impl_from_IDirect3DBaseTexture8(texture);
|
||||
|
||||
wined3d_mutex_lock();
|
||||
wined3d_device_set_texture(device->wined3d_device, stage,
|
||||
wined3d_stateblock_set_texture(device->update_state, stage,
|
||||
texture_impl ? texture_impl->wined3d_texture : NULL);
|
||||
if (!device->recording)
|
||||
wined3d_device_set_texture(device->wined3d_device, stage,
|
||||
texture_impl ? texture_impl->wined3d_texture : NULL);
|
||||
wined3d_mutex_unlock();
|
||||
|
||||
return D3D_OK;
|
||||
|
|
Loading…
Reference in New Issue