From a61ed5fee44b4f9b99fe4aac4ce79e3aec68d1a5 Mon Sep 17 00:00:00 2001 From: Patrice Mandin Date: Sun, 14 Jan 2007 14:24:36 +0000 Subject: [PATCH] Add error message if not using SDL_LoadObject --- src/video/x11/SDL_x11gl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/video/x11/SDL_x11gl.c b/src/video/x11/SDL_x11gl.c index 43334c10f..1d767e17f 100644 --- a/src/video/x11/SDL_x11gl.c +++ b/src/video/x11/SDL_x11gl.c @@ -479,7 +479,11 @@ int X11_GL_LoadLibrary(_THIS, const char* path) 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; }