mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-24 00:39:49 +00:00
more detailed error message when SDL fails to initialize
This commit is contained in:
parent
b6dd9ae337
commit
09cca0bf80
@ -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()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user