Zebediah Figura : d3d9: Retrieve the pixel shader from the primary stateblock.

Alexandre Julliard julliard at winehq.org
Mon Feb 10 16:32:46 CST 2020


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

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Fri Feb  7 22:07:12 2020 -0600

d3d9: Retrieve the pixel 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/d3d9/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index 6f35b3caab..fe23625a05 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -3872,7 +3872,7 @@ static HRESULT WINAPI d3d9_device_GetPixelShader(IDirect3DDevice9Ex *iface, IDir
     if (!shader) return D3DERR_INVALIDCALL;
 
     wined3d_mutex_lock();
-    if ((wined3d_shader = wined3d_device_get_pixel_shader(device->wined3d_device)))
+    if ((wined3d_shader = wined3d_stateblock_get_state(device->state)->ps))
     {
         shader_impl = wined3d_shader_get_parent(wined3d_shader);
         *shader = &shader_impl->IDirect3DPixelShader9_iface;




More information about the wine-cvs mailing list