From 7c8f43e9150235adac73d4f02fa6ce0e12a04a0a Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 4 Apr 2005 12:24:11 +0000 Subject: [PATCH] Linux: Load libGL.so with the RTLD_GLOBAL flag. It seems that some drivers need it --- src/native/linux/extgl_glx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/native/linux/extgl_glx.c b/src/native/linux/extgl_glx.c index 8bec75c3..86f1357f 100644 --- a/src/native/linux/extgl_glx.c +++ b/src/native/linux/extgl_glx.c @@ -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';