Commit 1dca8313 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

d3d8: Retrieve the vertex shader from the primary stateblock.

parent b2a234fb
...@@ -2967,7 +2967,7 @@ static HRESULT WINAPI d3d8_device_DeleteVertexShader(IDirect3DDevice8 *iface, DW ...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment