remove unnecessary clears on flip
This commit is contained in:
parent
13d7a3747b
commit
c61389d105
1 changed files with 1 additions and 1 deletions
|
@ -762,7 +762,7 @@ HRESULT dds_Flip(IDirectDrawSurfaceImpl* This, IDirectDrawSurfaceImpl* lpDDSurfa
|
|||
InterlockedExchangePointer((void*)&backbuffer->hdc, dc);
|
||||
InterlockedExchangePointer(&backbuffer->mapping, map);
|
||||
|
||||
if (g_config.flipclear)
|
||||
if (g_config.flipclear && (This->caps & DDSCAPS_PRIMARYSURFACE))
|
||||
{
|
||||
blt_clear(buf, 0, backbuffer->size);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue