Skip to content

Commit 6e0e123

Browse files
committed
BaseMenu: properly call VidInit on global background
1 parent a27d4ab commit 6e0e123

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

BaseMenu.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -621,9 +621,6 @@ void UI_UpdateMenu( float flTime )
621621
// set from user configs
622622
if( loadStuff )
623623
{
624-
// init global background, root windows don't have background anymore
625-
uiStatic.background = new CMenuBackgroundBitmap();
626-
627624
// load localized strings
628625
UI_LoadCustomStrings();
629626

@@ -1064,6 +1061,11 @@ int UI_VidInit( void )
10641061
// load button sounds
10651062
UI_LoadSounds();
10661063

1064+
// init global background, root windows don't have background anymore
1065+
if( !uiStatic.background )
1066+
uiStatic.background = new CMenuBackgroundBitmap();
1067+
uiStatic.background->VidInit();
1068+
10671069
uiStatic.menu.VidInit( calledOnce );
10681070

10691071
if( !calledOnce ) calledOnce = true;

0 commit comments

Comments
 (0)