[PATCH 4/5] d3d8: Retrieve the vertex shader from the primary stateblock.

Zebediah Figura z.figura12 at gmail.com
Tue Feb 18 19:48:02 CST 2020


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/d3d8/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c
index 783ba47f51..0bad38dff6 100644
--- a/dlls/d3d8/device.c
+++ b/dlls/d3d8/device.c
@@ -2967,7 +2967,7 @@ static HRESULT WINAPI d3d8_device_DeleteVertexShader(IDirect3DDevice8 *iface, DW
     }
 
     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);
 
     wined3d_mutex_unlock();
-- 
2.25.0




More information about the wine-devel mailing list