WINED3D: Return the correct pixelshader in
IWineD3DDeviceImpl_GetPixelShader
H. Verbeet
hverbeet at gmail.com
Thu Jan 19 15:54:29 CST 2006
IWineD3DDeviceImpl_GetPixelShader should return the pixelShader in
This->stateBlock, instead of the one in This->updateStateBlock.
Chnagelog:
- Return the correct pixelshader in IWineD3DDeviceImpl_GetPixelShader
-------------- next part --------------
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index b057a36..2ffeb1a 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -3967,7 +3967,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetPix
return D3DERR_INVALIDCALL;
}
- *ppShader = This->updateStateBlock->pixelShader;
+ *ppShader = This->stateBlock->pixelShader;
if (NULL != ppShader) {
IWineD3DPixelShader_AddRef(*ppShader);
}
More information about the wine-patches
mailing list