Skip to content

Commit

Permalink
Merge pull request #2332 from Bloodknight/PR_DedicatedLinuxCrashFix
Browse files Browse the repository at this point in the history
Fixes a crash that occurs on linux headless servers
  • Loading branch information
Areloch authored Mar 30, 2019
2 parents c1dabd4 + 9820780 commit d636e4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Engine/source/windowManager/sdl/sdlWindowMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,10 +504,12 @@ void InitWindowingSystem()

AFTER_MODULE_INIT(gfx)
{
#if !defined(TORQUE_DEDICATED)
int res = SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_HAPTIC | SDL_INIT_GAMECONTROLLER | SDL_INIT_EVENTS | SDL_INIT_NOPARACHUTE);
AssertFatal(res != -1, avar("SDL error:%s", SDL_GetError()));

// By default, SDL enables text input. We disable it on initialization, and
// we will enable it whenever the time is right.
SDL_StopTextInput();
#endif
}

0 comments on commit d636e4d

Please sign in to comment.