mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- clear the 2D drawers in the correct place.
This commit is contained in:
parent
8babdd6296
commit
d74d65bece
2 changed files with 4 additions and 7 deletions
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue