d3d8: Stop setting the device state in d3d8_device_SetPixelShader().

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:
Zebediah Figura 2020-02-20 20:21:33 -06:00 committed by Alexandre Julliard
parent 7cffddc993
commit 2f25af095d
1 changed files with 0 additions and 4 deletions

View File

@ -3207,8 +3207,6 @@ static HRESULT WINAPI d3d8_device_SetPixelShader(IDirect3DDevice8 *iface, DWORD
if (!shader)
{
wined3d_stateblock_set_pixel_shader(device->update_state, NULL);
if (!device->recording)
wined3d_device_set_pixel_shader(device->wined3d_device, NULL);
wined3d_mutex_unlock();
return D3D_OK;
}
@ -3222,8 +3220,6 @@ static HRESULT WINAPI d3d8_device_SetPixelShader(IDirect3DDevice8 *iface, DWORD
TRACE("Setting shader %p.\n", shader_impl);
wined3d_stateblock_set_pixel_shader(device->update_state, shader_impl->wined3d_shader);
if (!device->recording)
wined3d_device_set_pixel_shader(device->wined3d_device, shader_impl->wined3d_shader);
wined3d_mutex_unlock();
return D3D_OK;