# HG changeset patch # User Patrice Mandin # Date 1168784676 0 # Node ID 0e0883cb7137c77bf5fb7966f4a3268595b5e895 # Parent d8371d2dc5245af663b64e6be65c4ffbbc23915e Add error message if not using SDL_LoadObject diff -r d8371d2dc524 -r 0e0883cb7137 src/video/x11/SDL_x11gl.c --- a/src/video/x11/SDL_x11gl.c Thu Jan 11 20:33:13 2007 +0000 +++ b/src/video/x11/SDL_x11gl.c Sun Jan 14 14:24:36 2007 +0000 @@ -479,7 +479,11 @@ handle = GL_LoadObject(path); if ( handle == NULL ) { +#if defined(OPENGL_REQUIRS_DLOPEN) && defined(SDL_LOADSO_DLOPEN) + SDL_SetError("Failed loading %s", path); +#else /* SDL_LoadObject() will call SDL_SetError() for us. */ +#endif return -1; }