mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 14:00:39 +00:00
expanded debug reporting for SDL_Init
This commit is contained in:
parent
64955e8cfc
commit
b4c2906581
1 changed files with 3 additions and 3 deletions
|
|
@ -443,9 +443,9 @@ void InitWindowingSystem()
|
|||
}
|
||||
|
||||
AFTER_MODULE_INIT(gfx)
|
||||
{
|
||||
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, "SDL init error");
|
||||
{
|
||||
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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue