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:
parent
63783cabe1
commit
222113a343
@ -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 (
|
||||
|
Loading…
x
Reference in New Issue
Block a user