1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 21:23:52 +00:00

more detailed error message when SDL fails to initialize

This commit is contained in:
Vincent Heuken 2013-06-23 16:45:23 -07:00
parent b6dd9ae337
commit 09cca0bf80

View file

@ -152,7 +152,9 @@ OMW::Engine::Engine(Files::ConfigurationManager& configurationManager)
//might this be related to http://bugzilla.libsdl.org/show_bug.cgi?id=748 ?
SDL_SetHint(SDL_HINT_RENDER_DRIVER, "software");
if(SDL_Init(flags) != 0)
throw std::runtime_error("Couldn't initialize SDL!");
{
throw std::runtime_error("Could not initialize SDL! " + std::string(SDL_GetError()));
}
}
}