mirror of https://github.com/buggins/dlangui.git
Merge pull request #246 from mleise/patch-1
Minimal error reporting for SDL_Init
This commit is contained in:
commit
7ab93a22f5
|
@ -1749,7 +1749,7 @@ int sdlmain(string[] args) {
|
||||||
|
|
||||||
SDL_DisplayMode displayMode;
|
SDL_DisplayMode displayMode;
|
||||||
if (SDL_Init(SDL_INIT_VIDEO|SDL_INIT_TIMER|SDL_INIT_EVENTS|SDL_INIT_NOPARACHUTE) != 0) {
|
if (SDL_Init(SDL_INIT_VIDEO|SDL_INIT_TIMER|SDL_INIT_EVENTS|SDL_INIT_NOPARACHUTE) != 0) {
|
||||||
Log.e("Cannot init SDL2");
|
Log.e("Cannot init SDL2: ", SDL_GetError().to!string());
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
scope(exit)SDL_Quit();
|
scope(exit)SDL_Quit();
|
||||||
|
|
Loading…
Reference in New Issue