changeset 2118:238db749017a

Merged r3062:3063 from branches/SDL-1.2: clear inaccurate x11dyn error strings.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 13 Jun 2007 08:02:43 +0000
parents 40888832d785
children 9341a884a4d9
files src/video/x11/SDL_x11dyn.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/x11/SDL_x11dyn.c	Wed Jun 13 06:05:39 2007 +0000
+++ b/src/video/x11/SDL_x11dyn.c	Wed Jun 13 08:02:43 2007 +0000
@@ -167,8 +167,10 @@
         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;
         }
     }