mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
Try to promote libGL.so to global scope if we can't resolve it directly
This commit is contained in:
parent
14ff24fd41
commit
ff4057b6a1
@ -107,6 +107,16 @@ FDEF(glXGetProcAddress);
|
||||
|
||||
static void resolveOpenGL() {
|
||||
RESOLVE(glXSwapBuffers);
|
||||
|
||||
if (! oglXSwapBuffers) {
|
||||
void *lib = dlopen("libGL.so.1", RTLD_GLOBAL | RTLD_NOLOAD);
|
||||
if (! lib)
|
||||
return;
|
||||
RESOLVE(glXSwapBuffers);
|
||||
if (! oglXSwapBuffers)
|
||||
dlclose(lib);
|
||||
}
|
||||
|
||||
RESOLVE(glXGetProcAddressARB);
|
||||
RESOLVE(glXGetProcAddress);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user