Skip to content

Commit

Permalink
Reset color in RenderLoading & HUD
Browse files Browse the repository at this point in the history
  • Loading branch information
Jupeyy committed Dec 5, 2024
1 parent 2fad402 commit 9075631
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game/client/components/hud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ void CHud::OnInit()
{
OnReset();

Graphics()->SetColor(1.0, 1.0, 1.0, 1.0);

m_HudQuadContainerIndex = Graphics()->CreateQuadContainer(false);
Graphics()->QuadsSetSubset(0, 0, 1, 1);
PrepareAmmoHealthAndArmorQuads();
Expand Down
2 changes: 2 additions & 0 deletions src/game/client/components/menus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,8 @@ void CMenus::RenderLoading(const char *pCaption, const char *pContent, int Incre
Ui()->RenderProgressBar(ProgressBar, CurLoadRenderCount / (float)m_LoadingState.m_Total);
}

Graphics()->SetColor(1.0, 1.0, 1.0, 1.0);

Client()->UpdateAndSwap();
}

Expand Down

0 comments on commit 9075631

Please sign in to comment.