it seems ATI's libGL needs to be loaded with global symbols in order to

work properly.
This commit is contained in:
Bill Currie 2004-01-09 23:37:04 +00:00
parent 03a24be4de
commit e0567f75cc

View file

@ -114,8 +114,12 @@ void *
QFGL_LoadLibrary (void) QFGL_LoadLibrary (void)
{ {
void *handle; void *handle;
int flags = RTLD_NOW;
if (!(handle = dlopen (gl_driver->string, RTLD_NOW))) { #ifdef RTLD_GLOBAL
flags |= RTLD_GLOBAL;
#endif
if (!(handle = dlopen (gl_driver->string, flags))) {
Sys_Error ("Couldn't load OpenGL library %s: %s", gl_driver->string, Sys_Error ("Couldn't load OpenGL library %s: %s", gl_driver->string,
dlerror ()); dlerror ());
} }