diff --git a/source/core/inputstate.cpp b/source/core/inputstate.cpp index 04915ec8f..0ff098f80 100644 --- a/source/core/inputstate.cpp +++ b/source/core/inputstate.cpp @@ -163,9 +163,6 @@ int32_t handleevents(void) setViewport(hud_size); setsizeneeded = false; } -#pragma message ("only for old game loop") - twod->SetSize(screen->GetWidth(), screen->GetHeight()); - twodpsp.SetSize(screen->GetWidth(), screen->GetHeight()); I_StartFrame(); I_StartTic(); diff --git a/source/core/mainloop.cpp b/source/core/mainloop.cpp index 4687f21ea..5fe4bc68f 100644 --- a/source/core/mainloop.cpp +++ b/source/core/mainloop.cpp @@ -341,7 +341,11 @@ void Display() screen->FrameTime = I_msTimeFS(); screen->BeginFrame(); + twodpsp.Clear(); + twodpsp.SetSize(screen->GetWidth(), screen->GetHeight()); twodpsp.ClearClipRect(); + twod->Clear(); + twod->SetSize(screen->GetWidth(), screen->GetHeight()); twod->ClearClipRect(); switch (gamestate) { @@ -362,10 +366,6 @@ void Display() screen->FrameTime = I_msTimeFS(); screen->BeginFrame(); screen->SetSceneRenderTarget(gl_ssao != 0); - twodpsp.Clear(); - twod->Clear(); - twod->SetSize(screen->GetWidth(), screen->GetHeight()); - twodpsp.SetSize(screen->GetWidth(), screen->GetHeight()); gi->Render(); DrawFullscreenBlends(); drawMapTitle();