Merged r3062:3063 from branches/SDL-1.2: clear inaccurate x11dyn error strings.
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402343
This commit is contained in:
parent
aed3413eb1
commit
1a14aab745
1 changed files with 4 additions and 2 deletions
|
@ -167,8 +167,10 @@ SDL_X11_LoadSymbols(void)
|
|||
X11_GetSym("XCreateIC", &SDL_X11_HAVE_UTF8, (void **) &pXCreateIC);
|
||||
#endif
|
||||
|
||||
if (!SDL_X11_HAVE_BASEXLIB) { /* some required symbol didn't load. */
|
||||
SDL_X11_UnloadSymbols(); /* in case something got loaded... */
|
||||
if (SDL_X11_HAVE_BASEXLIB) { /* all required symbols loaded. */
|
||||
SDL_ClearError();
|
||||
} else {
|
||||
SDL_X11_UnloadSymbols(); /* in case something got loaded... */
|
||||
rc = 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue