forked from Mirrors/openclonk
Initialize graphics when re-loading sky (#1827)
Need this so that C4Sky::Init can read the shaders.directional-lights
parent
9aaec9a009
commit
8f61918219
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue