author | Patrice Mandin <patmandin@gmail.com> |
Sun, 14 Jan 2007 14:24:36 +0000 | |
branch | SDL-1.2 |
changeset 3905 | 0e0883cb7137 |
parent 3904 | d8371d2dc524 |
child 3906 | e3bf970d9494 |
--- 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; }