Mercurial > sdl-ios-xcode
changeset 3905:0e0883cb7137 SDL-1.2
Add error message if not using SDL_LoadObject
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Sun, 14 Jan 2007 14:24:36 +0000 |
parents | d8371d2dc524 |
children | e3bf970d9494 |
files | src/video/x11/SDL_x11gl.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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; }