print a more meaningful message when SDL fails to initialise OpenGL
This commit is contained in:
parent
e474abb5a0
commit
5cadba2207
1785
CHANGELOG.txt
1785
CHANGELOG.txt
File diff suppressed because it is too large
Load diff
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue