Commit 776d4072 authored by Patrice Mandin's avatar Patrice Mandin

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
parent 574cd41a
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment