[PATCH 5/5] d3d9: Retrieve the pixel shader from the primary stateblock.

Zebediah Figura z.figura12 at gmail.com
Fri Feb 7 22:07:12 CST 2020


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 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 284ea831c6..96e1e10252 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -3870,7 +3870,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;
-- 
2.25.0




More information about the wine-devel mailing list