Skip to content

Commit

Permalink
fix black screen when starting level with warp or map in opengl rende…
Browse files Browse the repository at this point in the history
…r, with startscreen and screenblocks > 10

It's an hack It doesn't really fix the problem but it works
  • Loading branch information
emawind84 committed Mar 15, 2024
1 parent daf9284 commit b421ebc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/d_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1004,6 +1004,8 @@ void D_Display ()
twod->Begin(screen->GetWidth(), screen->GetHeight());
if (!hud_toggled)
{
static int saved_screenblocks = screenblocks;
//if (gametic == 1) screenblocks = 10;
V_DrawBlend(viewsec);
if (automapactive)
{
Expand Down Expand Up @@ -1042,6 +1044,7 @@ void D_Display ()
StatusBar->CallDraw (HUD_StatusBar, vp.TicFrac);
StatusBar->DrawTopStuff (HUD_StatusBar);
}
//if (gametic == 1) screenblocks = saved_screenblocks;
//stb.Unclock();
//Printf("Stbar = %f\n", stb.TimeMS());
}
Expand Down

0 comments on commit b421ebc

Please sign in to comment.