mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 04:20:45 +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);
|
setViewport(hud_size);
|
||||||
setsizeneeded = false;
|
setsizeneeded = false;
|
||||||
}
|
}
|
||||||
#pragma message ("only for old game loop")
|
|
||||||
twod->SetSize(screen->GetWidth(), screen->GetHeight());
|
|
||||||
twodpsp.SetSize(screen->GetWidth(), screen->GetHeight());
|
|
||||||
|
|
||||||
I_StartFrame();
|
I_StartFrame();
|
||||||
I_StartTic();
|
I_StartTic();
|
||||||
|
|
|
@ -341,7 +341,11 @@ void Display()
|
||||||
|
|
||||||
screen->FrameTime = I_msTimeFS();
|
screen->FrameTime = I_msTimeFS();
|
||||||
screen->BeginFrame();
|
screen->BeginFrame();
|
||||||
|
twodpsp.Clear();
|
||||||
|
twodpsp.SetSize(screen->GetWidth(), screen->GetHeight());
|
||||||
twodpsp.ClearClipRect();
|
twodpsp.ClearClipRect();
|
||||||
|
twod->Clear();
|
||||||
|
twod->SetSize(screen->GetWidth(), screen->GetHeight());
|
||||||
twod->ClearClipRect();
|
twod->ClearClipRect();
|
||||||
switch (gamestate)
|
switch (gamestate)
|
||||||
{
|
{
|
||||||
|
@ -362,10 +366,6 @@ void Display()
|
||||||
screen->FrameTime = I_msTimeFS();
|
screen->FrameTime = I_msTimeFS();
|
||||||
screen->BeginFrame();
|
screen->BeginFrame();
|
||||||
screen->SetSceneRenderTarget(gl_ssao != 0);
|
screen->SetSceneRenderTarget(gl_ssao != 0);
|
||||||
twodpsp.Clear();
|
|
||||||
twod->Clear();
|
|
||||||
twod->SetSize(screen->GetWidth(), screen->GetHeight());
|
|
||||||
twodpsp.SetSize(screen->GetWidth(), screen->GetHeight());
|
|
||||||
gi->Render();
|
gi->Render();
|
||||||
DrawFullscreenBlends();
|
DrawFullscreenBlends();
|
||||||
drawMapTitle();
|
drawMapTitle();
|
||||||
|
|
Loading…
Reference in a new issue