Commit 127b9119 authored by Ryan C. Gordon's avatar Ryan C. Gordon

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
parent ecbe9ec6
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment