Skip to content
Permalink
Browse files

Initialize graphics when re-loading sky (#1827)

Need this so that C4Sky::Init can read the shaders.
  • Loading branch information
aburgm committed Oct 16, 2016
1 parent 9aaec9a commit 8f61918219ee2b5d6191a2840bd50a55423c383e
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/game/C4Game.cpp
@@ -2193,6 +2193,12 @@ bool C4Game::InitGame(C4Group &hGroup, InitMode init_mode, bool fLoadSky, C4Valu
assert(!ScriptGuiRoot);
ScriptGuiRoot.reset(new C4ScriptGuiWindow);
}
else if (fLoadSky)
{
// Sky needs graphics loaded, for shaders
if (!GraphicsResource.Init())
{ LogFatal(LoadResStr("IDS_PRC_FAIL")); return false; }
}

// Load section sounds
Application.SoundSystem.LoadEffects(hGroup, NULL, true);

0 comments on commit 8f61918

Please sign in to comment.
You can’t perform that action at this time.