Linux: Load libGL.so with the RTLD_GLOBAL flag. It seems that some drivers need it

This commit is contained in:
Elias Naur 2005-04-04 12:24:11 +00:00
parent fecbafc097
commit 7c8f43e915
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ bool extgl_Open(JNIEnv *env) {
static char buffer[BUFFER_SIZE];
if (lib_gl_handle != NULL)
return true;
lib_gl_handle = dlopen("libGL.so.1", RTLD_LAZY);
lib_gl_handle = dlopen("libGL.so.1", RTLD_LAZY | RTLD_GLOBAL);
if (lib_gl_handle == NULL) {
snprintf(buffer, BUFFER_SIZE, "Error loading libGL.so.1: %s", dlerror());
buffer[BUFFER_SIZE - 1] = '\0';