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.
This commit is contained in:
Ryan C. Gordon
2005-09-08 18:26:56 +00:00
parent 344efd091a
commit 352a5c880b

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