print a more meaningful message when SDL fails to initialise OpenGL
This commit is contained in:
parent
e474abb5a0
commit
5cadba2207
|
@ -3,6 +3,7 @@ D2X-Rebirth Changelog
|
||||||
20071110
|
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/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
|
20071106
|
||||||
--------
|
--------
|
||||||
|
|
|
@ -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)))
|
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);
|
SDL_ShowCursor(0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue