print a more meaningful message when SDL fails to initialise OpenGL

This commit is contained in:
kreatordxx 2007-11-10 08:53:21 +00:00
parent e474abb5a0
commit 5cadba2207
2 changed files with 894 additions and 893 deletions

File diff suppressed because it is too large Load diff

View file

@ -79,7 +79,7 @@ int ogl_init_window(int x, int y)
if (!SDL_SetVideoMode(x, y, GameArg.DbgGlBpp, SDL_OPENGL | (ogl_fullscreen ? SDL_FULLSCREEN : 0)))
{
Error("Could not set %dx%dx%d opengl video mode\n", x, y, GameArg.DbgGlBpp);
Error("Could not set %dx%dx%d opengl video mode: %s\n", x, y, GameArg.DbgGlBpp, SDL_GetError());
}
SDL_ShowCursor(0);