1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Add log for SDL_Init failures

This commit is contained in:
Mathieu Schroeter 2017-12-02 23:23:35 +01:00
parent 63783cabe1
commit 222113a343

View File

@ -678,7 +678,10 @@ DoInit (int argc, char * argv[], bool & exit)
auto res = SDL_Init (SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER);
if (res < 0)
{
SDL_Log ("Unable to initialize SDL: %s", SDL_GetError ());
return EXIT_FAILURE;
}
// Create a window.
g_window = SDL_CreateWindow (