Mercurial > sdl-ios-xcode
diff 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 |
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 );