If couldn't load a needed GL symbol in SDL_SetVideoMode(), report it more

specifically. Patch by Anders F Bj�rklund <afb@algonet.se>.

--ryan.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401144
This commit is contained in:
Ryan C. Gordon 2005-09-08 18:26:56 +00:00
parent ecbe9ec648
commit 127b91199d

View file

@ -756,7 +756,7 @@ SDL_Surface * SDL_SetVideoMode (int width, int height, int bpp, Uint32 flags)
do { \
video->func = SDL_GL_GetProcAddress(#func); \
if ( ! video->func ) { \
SDL_SetError("Couldn't load GL function: %s\n", #func); \
SDL_SetError("Couldn't load GL function %s: %s\n", #func, SDL_GetError()); \
return(NULL); \
} \
} while ( 0 );