From feca14fb91f453946e2ac1d4b8a5422df78d478e Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 16 Nov 2002 07:40:32 +0000 Subject: [PATCH] fix error message go to more lengths to get our own glext.h --- stepmania/src/RageDisplay.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/RageDisplay.cpp b/stepmania/src/RageDisplay.cpp index 9ac6ceb095..a29c5ca93b 100644 --- a/stepmania/src/RageDisplay.cpp +++ b/stepmania/src/RageDisplay.cpp @@ -27,6 +27,7 @@ #include "SDL.h" /* ours is more up-to-date */ #define NO_SDL_GLEXT +#define __glext_h_ /* try harder to stop glext.h from being forced on us by someone else */ #include "SDL_opengl.h" #include "glext.h" @@ -225,7 +226,7 @@ bool RageDisplay::SetVideoMode( bool windowed, int width, int height, int bpp, i if(!g_screen) { g_screen = SDL_SetVideoMode(width, height, bpp, g_flags); if(!g_screen) - throw RageException("Failed to open screen!"); + throw RageException("SDL_SetVideoMode failed: %s", SDL_GetError()); SDL_WM_SetCaption("StepMania", "StepMania"); }