Linux: Removed the unnecessary RTLD_GLOBAL flag from the dynamic loading of libGL.so
This commit is contained in:
parent
13fdcded26
commit
16f78b39c6
|
@ -154,7 +154,7 @@ bool extgl_Open(JNIEnv *env) {
|
||||||
char buffer[BUFFER_SIZE];
|
char buffer[BUFFER_SIZE];
|
||||||
if (lib_gl_handle != NULL)
|
if (lib_gl_handle != NULL)
|
||||||
return true;
|
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) {
|
if (lib_gl_handle == NULL) {
|
||||||
snprintf(buffer, BUFFER_SIZE, "Error loading libGL.so.1: %s", dlerror());
|
snprintf(buffer, BUFFER_SIZE, "Error loading libGL.so.1: %s", dlerror());
|
||||||
buffer[BUFFER_SIZE - 1] = '\0';
|
buffer[BUFFER_SIZE - 1] = '\0';
|
||||||
|
|
Loading…
Reference in New Issue