mirror of
https://github.com/yawut/SDL.git
synced 2026-08-27 03:07:10 -05:00
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user