Răsfoiți Sursa

Merge pull request #2021 from Azaezel/SDL_Init

expanded debug reporting for SDL_Init
Areloch 8 ani în urmă
părinte
comite
8780f83262
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      Engine/source/windowManager/sdl/sdlWindowMgr.cpp

+ 3 - 3
Engine/source/windowManager/sdl/sdlWindowMgr.cpp

@@ -443,9 +443,9 @@ void InitWindowingSystem()
 }
 }
 
 
 AFTER_MODULE_INIT(gfx)
 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
    // By default, SDL enables text input. We disable it on initialization, and
    // we will enable it whenever the time is right.
    // we will enable it whenever the time is right.