If couldn't load a needed GL symbol in SDL_SetVideoMode(), report it more
authorRyan C. Gordon <icculus@icculus.org>
Thu, 08 Sep 2005 18:26:56 +0000
changeset 1141 fe1fa56dcbc6
parent 1140 af8b0f9ac2f4
child 1142 c7376efecdb5
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.
src/video/SDL_video.c
--- a/src/video/SDL_video.c	Thu Sep 08 07:33:22 2005 +0000
+++ b/src/video/SDL_video.c	Thu Sep 08 18:26:56 2005 +0000
@@ -756,7 +756,7 @@
     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 );