Skip to content

Commit

Permalink
If couldn't load a needed GL symbol in SDL_SetVideoMode(), report it …
Browse files Browse the repository at this point in the history
…more

 specifically. Patch by Anders F Bj?rklund <afb@algonet.se>.

--ryan.
  • Loading branch information
icculus committed Sep 8, 2005
1 parent 66374fe commit 2b143a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/SDL_video.c
Expand Up @@ -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 );
Expand Down

0 comments on commit 2b143a4

Please sign in to comment.