d3d8: Retrieve the vertex shader from the primary stateblock.

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-19 09:53:56 -06:00 committed by Alexandre Julliard
parent b2a234fb7e
commit 1dca8313ce
1 changed files with 1 additions and 1 deletions

View File

@ -2967,7 +2967,7 @@ static HRESULT WINAPI d3d8_device_DeleteVertexShader(IDirect3DDevice8 *iface, DW
} }
if (shader_impl->wined3d_shader if (shader_impl->wined3d_shader
&& wined3d_device_get_vertex_shader(device->wined3d_device) == shader_impl->wined3d_shader) && wined3d_stateblock_get_state(device->state)->vs == shader_impl->wined3d_shader)
IDirect3DDevice8_SetVertexShader(iface, 0); IDirect3DDevice8_SetVertexShader(iface, 0);
wined3d_mutex_unlock(); wined3d_mutex_unlock();