changeset 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 c7376efecdb5
files src/video/SDL_video.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 );