comparison src/video/SDL_video.c @ 1141:fe1fa56dcbc6

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.
author Ryan C. Gordon <icculus@icculus.org>
date Thu, 08 Sep 2005 18:26:56 +0000
parents af8b0f9ac2f4
children 19d8949b4584
comparison
equal deleted inserted replaced
1140:af8b0f9ac2f4 1141:fe1fa56dcbc6
754 #else 754 #else
755 #define SDL_PROC(ret,func,params) \ 755 #define SDL_PROC(ret,func,params) \
756 do { \ 756 do { \
757 video->func = SDL_GL_GetProcAddress(#func); \ 757 video->func = SDL_GL_GetProcAddress(#func); \
758 if ( ! video->func ) { \ 758 if ( ! video->func ) { \
759 SDL_SetError("Couldn't load GL function: %s\n", #func); \ 759 SDL_SetError("Couldn't load GL function %s: %s\n", #func, SDL_GetError()); \
760 return(NULL); \ 760 return(NULL); \
761 } \ 761 } \
762 } while ( 0 ); 762 } while ( 0 );
763 763
764 #endif /* __SDL_NOGETPROCADDR__ */ 764 #endif /* __SDL_NOGETPROCADDR__ */