Destroy FStartupScreen before initializing video

Fixes terminal output cutoff on console tab completion on Unix systems.
This commit is contained in:
Cacodemon345 2021-05-17 00:01:14 +06:00 committed by Christoph Oelckers
parent be97ee04f9
commit 75ecd173b6

View file

@ -1013,6 +1013,7 @@ int RunGame()
lookups.postLoadLookups(); lookups.postLoadLookups();
FMaterial::SetLayerCallback(setpalettelayer); FMaterial::SetLayerCallback(setpalettelayer);
if (GameStartupInfo.Name.IsNotEmpty()) I_SetWindowTitle(GameStartupInfo.Name); if (GameStartupInfo.Name.IsNotEmpty()) I_SetWindowTitle(GameStartupInfo.Name);
DeleteStartupScreen();
V_Init2(); V_Init2();
twod->Begin(screen->GetWidth(), screen->GetHeight()); twod->Begin(screen->GetWidth(), screen->GetHeight());