From 5f3311f7ed344d9596435abfdf8ffc188e2079e1 Mon Sep 17 00:00:00 2001 From: Andrew Fenn Date: Thu, 21 Aug 2008 13:29:14 +0700 Subject: - Fixed the depth issue in spore - Fixed the UI not displaying in spore --- dlls/d3d9/device.c | 3 ++- dlls/wined3d/device.c | 4 ++++ 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c index ddeaca3..dfbf818 100644 --- a/dlls/d3d9/device.c +++ b/dlls/d3d9/device.c @@ -746,7 +746,8 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetDepthStencilSurface(LPDIRECT3DDE } } else { WARN("Call to IWineD3DDevice_GetDepthStencilSurface failed\n"); - *ppZStencilSurface = NULL; + //*ppZStencilSurface = NULL; + return D3DERR_INVALIDCALL; } LeaveCriticalSection(&d3d9_cs); return hr; diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index e1e01e2..7a737bc 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -3414,6 +3414,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetScissorRect(IWineD3DDevice *iface, C TRACE("App is setting the old scissor rectangle over, nothing to do\n"); return WINED3D_OK; } + + if( (pRect->left == 0) && (pRect->top == 0) && (pRect->right == 0) && (pRect->bottom == 0) ) + return WINED3DERR_INVALIDCALL; + CopyRect(&This->updateStateBlock->scissorRect, pRect); if(This->isRecordingState) { -- 1.5.4.3