src/video/x11/SDL_x11dyn.c
changeset 2120 2c835d58faad
parent 2118 238db749017a
child 2325 c7bcf84ba1b9
equal deleted inserted replaced
2119:9341a884a4d9 2120:2c835d58faad
   165 
   165 
   166 #ifdef X_HAVE_UTF8_STRING
   166 #ifdef X_HAVE_UTF8_STRING
   167         X11_GetSym("XCreateIC", &SDL_X11_HAVE_UTF8, (void **) &pXCreateIC);
   167         X11_GetSym("XCreateIC", &SDL_X11_HAVE_UTF8, (void **) &pXCreateIC);
   168 #endif
   168 #endif
   169 
   169 
   170         if (SDL_X11_HAVE_BASEXLIB) {  /* all required symbols loaded. */
   170         if (SDL_X11_HAVE_BASEXLIB) {
       
   171             /* all required symbols loaded. */
   171             SDL_ClearError();
   172             SDL_ClearError();
   172         } else {
   173         } else {
   173             SDL_X11_UnloadSymbols();  /* in case something got loaded... */
   174             /* in case something got loaded... */
       
   175             SDL_X11_UnloadSymbols();
   174             rc = 0;
   176             rc = 0;
   175         }
   177         }
   176     }
   178     }
   177 #else
   179 #else
   178 #ifdef X_HAVE_UTF8_STRING
   180 #ifdef X_HAVE_UTF8_STRING