Skip to content

Commit

Permalink
remove unnecessary clears on flip
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed May 2, 2024
1 parent 13d7a37 commit c61389d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ddsurface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c61389d

Please sign in to comment.