src/SDL12_compat.c
changeset 85 03415a8f246a
parent 84 df9e8ff61b45
child 86 4b12bf655509
     1.1 --- a/src/SDL12_compat.c	Thu Feb 21 02:42:13 2019 -0500
     1.2 +++ b/src/SDL12_compat.c	Thu Feb 28 09:09:36 2019 -0500
     1.3 @@ -761,7 +761,7 @@
     1.4      #define SDL20_LIBNAME "libSDL2-2.0.so.0"
     1.5      #endif
     1.6      static void *Loaded_SDL20 = NULL;
     1.7 -    #define LoadSDL20Library() ((Loaded_SDL20 = dlopen(SDL20_LIBNAME, RTLD_LOCAL)) != NULL)
     1.8 +    #define LoadSDL20Library() ((Loaded_SDL20 = dlopen(SDL20_LIBNAME, RTLD_LOCAL|RTLD_NOW)) != NULL)
     1.9      #define LookupSDL20Sym(sym) dlsym(Loaded_SDL20, sym)
    1.10      #define CloseSDL20Library() { if (Loaded_SDL20) { dlclose(Loaded_SDL20); Loaded_SDL20 = NULL; } }
    1.11  #else