- clear the 2D drawers in the correct place.

This commit is contained in:
Christoph Oelckers 2020-09-15 21:46:32 +02:00
parent 8babdd6296
commit d74d65bece
2 changed files with 4 additions and 7 deletions

View file

@ -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();

View file

@ -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();