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:
parent
ecbe9ec648
commit
127b91199d
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue