d3d9: 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-07 22:07:08 -06:00 committed by Alexandre Julliard
parent ec86f3eb00
commit 706e174817
1 changed files with 1 additions and 1 deletions

View File

@ -3524,7 +3524,7 @@ static HRESULT WINAPI d3d9_device_GetVertexShader(IDirect3DDevice9Ex *iface, IDi
TRACE("iface %p, shader %p.\n", iface, shader);
wined3d_mutex_lock();
if ((wined3d_shader = wined3d_device_get_vertex_shader(device->wined3d_device)))
if ((wined3d_shader = wined3d_stateblock_get_state(device->state)->vs))
{
shader_impl = wined3d_shader_get_parent(wined3d_shader);
*shader = &shader_impl->IDirect3DVertexShader9_iface;