Zebediah Figura : d3d8: Retrieve the vertex shader from the primary stateblock.

Alexandre Julliard julliard at winehq.org
Thu Feb 20 18:26:11 CST 2020


Module: wine
Branch: master
Commit: 1dca8313ce5a86a2764899fe8d2a608cdbcb15d7
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=1dca8313ce5a86a2764899fe8d2a608cdbcb15d7

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Wed Feb 19 09:53:56 2020 -0600

d3d8: Retrieve the vertex shader from the primary stateblock.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 8f851fa2a6..c7e4772b3b 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();




More information about the wine-cvs mailing list