ddraw: Catch No-op SetRenderTarget operations.

This commit is contained in:
Stefan Dösinger 2008-02-28 19:10:19 +01:00 committed by Alexandre Julliard
parent 5709a0b4b6
commit 069b9c8c1c
1 changed files with 7 additions and 0 deletions

View File

@ -1862,6 +1862,13 @@ IDirect3DDeviceImpl_7_SetRenderTarget(IDirect3DDevice7 *iface,
EnterCriticalSection(&ddraw_cs);
/* Flags: Not used */
if(This->target == Target)
{
TRACE("No-op SetRenderTarget operation, not doing anything\n");
LeaveCriticalSection(&ddraw_cs);
return D3D_OK;
}
hr = IWineD3DDevice_SetRenderTarget(This->wineD3DDevice,
0,
Target ? Target->WineD3DSurface : NULL);