d3d8: Deleting an invalid pixel shader handle should return D3D_OK.

Henri Verbeet hverbeet at codeweavers.com
Tue Jun 16 02:38:25 CDT 2009


---
 dlls/d3d8/device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c
index f64af2e..d4b79ed 100644
--- a/dlls/d3d8/device.c
+++ b/dlls/d3d8/device.c
@@ -2308,7 +2308,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_DeletePixelShader(LPDIRECT3DDEVICE8 i
     {
         WARN("Invalid handle (%#x) passed.\n", pShader);
         LeaveCriticalSection(&d3d8_cs);
-        return D3DERR_INVALIDCALL;
+        return D3D_OK;
     }
 
     IWineD3DDevice_GetPixelShader(This->WineD3DDevice, &cur);
-- 
1.6.0.6



--------------050501030601040701000405--



More information about the wine-patches mailing list