Fixes and tweaks

This commit is contained in:
Wojtek Figat
2021-02-12 10:57:45 +01:00
parent 5a23df6478
commit 80e2aee92b
10 changed files with 11 additions and 27 deletions

View File

@@ -259,13 +259,13 @@ void GameBaseImpl::OnSplashScreenEnd()
{
// Hide splash screen
SplashScreenTime = 0;
SplashScreen.Unlink();
SplashScreen = nullptr;
MainRenderTask::Instance->PostRender.Unbind(&OnPostRender);
// Load the first scene
LOG(Info, "Loading the first scene");
const auto sceneId = FirstScene ? FirstScene.GetID() : Guid::Empty;
FirstScene.Unlink();
FirstScene = nullptr;
if (Level::LoadSceneAsync(sceneId))
{
LOG(Fatal, "Cannot load the first scene.");