Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Merged r3062:3063 from branches/SDL-1.2: clear inaccurate x11dyn erro…
Browse files Browse the repository at this point in the history
…r strings.
  • Loading branch information
icculus committed Jun 13, 2007
1 parent 4539820 commit 23e8a63
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/video/x11/SDL_x11dyn.c
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 23e8a63

Please sign in to comment.