Linux: Removed the unnecessary RTLD_GLOBAL flag from the dynamic loading of libGL.so

This commit is contained in:
Elias Naur 2005-12-20 08:47:40 +00:00
parent 13fdcded26
commit 16f78b39c6
1 changed files with 1 additions and 1 deletions

View File

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