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

View file

@ -3,6 +3,7 @@ D2X-Rebirth Changelog
20071110
--------
arch/include/digi_mixer_music.h, arch/sdl/digi_mixer_music.c, arch/sdl/jukebox.c, include/physfsx.h: port the jukebox to PhysicsFS for Mac OS 9 compatibility
arch/ogl/sdlgl.c: print a more meaningful message when SDL fails to initialise OpenGL
20071106
--------

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);