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

This commit is contained in:
Henri Verbeet 2009-06-16 09:38:25 +02:00 committed by Alexandre Julliard
parent dc3958c079
commit 1bbc65b155
1 changed files with 1 additions and 1 deletions

View File

@ -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);