Merged r3062:3063 from branches/SDL-1.2: clear inaccurate x11dyn error strings.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 13 Jun 2007 08:02:43 +0000
changeset 2118238db749017a
parent 2117 40888832d785
child 2119 9341a884a4d9
Merged r3062:3063 from branches/SDL-1.2: clear inaccurate x11dyn error strings.
src/video/x11/SDL_x11dyn.c
     1.1 --- a/src/video/x11/SDL_x11dyn.c	Wed Jun 13 06:05:39 2007 +0000
     1.2 +++ b/src/video/x11/SDL_x11dyn.c	Wed Jun 13 08:02:43 2007 +0000
     1.3 @@ -167,8 +167,10 @@
     1.4          X11_GetSym("XCreateIC", &SDL_X11_HAVE_UTF8, (void **) &pXCreateIC);
     1.5  #endif
     1.6  
     1.7 -        if (!SDL_X11_HAVE_BASEXLIB) {   /* some required symbol didn't load. */
     1.8 -            SDL_X11_UnloadSymbols();    /* in case something got loaded... */
     1.9 +        if (SDL_X11_HAVE_BASEXLIB) {  /* all required symbols loaded. */
    1.10 +            SDL_ClearError();
    1.11 +        } else {
    1.12 +            SDL_X11_UnloadSymbols();  /* in case something got loaded... */
    1.13              rc = 0;
    1.14          }
    1.15      }