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:
parent
574cd41a99
commit
776d4072e8
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue