Skip to content

Commit

Permalink
Fix engine startup on Linux and macOS (closes #1670)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed May 12, 2024
1 parent b40433b commit 298599a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/xrEngine/x_ray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,12 @@ CApplication::CApplication(pcstr commandLine, GameModule* game)
Engine.Sound.CreateDevicesList();
});

#ifdef XR_PLATFORM_WINDOWS
const auto& createRendererList = TaskManager::AddTask([](Task&, void*)
{
Engine.External.CreateRendererList();
});
#endif

pcstr fsltx = "-fsltx ";
string_path fsgame = "";
Expand All @@ -283,7 +285,11 @@ CApplication::CApplication(pcstr commandLine, GameModule* game)
TaskScheduler->Wait(inputTask);
InitConsole();

#ifdef XR_PLATFORM_WINDOWS
TaskScheduler->Wait(createRendererList);
#else
Engine.External.CreateRendererList();
#endif
Engine.Initialize(game);
Device.Initialize();

Expand Down

0 comments on commit 298599a

Please sign in to comment.