Add error message if not using SDL_LoadObject

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402251
This commit is contained in:
Patrice Mandin 2007-01-14 14:24:36 +00:00
parent 574cd41a99
commit 776d4072e8

View file

@ -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;
}