Browse Source

Platform: better diagnostic in Sdl2Application::tryCreateContext().

pull/278/head
Vladimír Vondruš 13 years ago
parent
commit
bb39338008
  1. 2
      src/Platform/Sdl2Application.cpp

2
src/Platform/Sdl2Application.cpp

@ -94,7 +94,7 @@ bool Sdl2Application::tryCreateContext(Configuration* configuration) {
SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED,
configuration->size().x(), configuration->size().y(),
SDL_WINDOW_OPENGL|flags))) {
Error() << "Platform::Sdl2Application::tryCreateContext(): cannot create window";
Error() << "Platform::Sdl2Application::tryCreateContext(): cannot create window:" << SDL_GetError();
std::exit(2);
}

Loading…
Cancel
Save