Use libGL.so.1 instead of libGL.so for dynamic access

This commit is contained in:
baldurk
2018-08-01 19:36:45 +01:00
parent 13375dc722
commit 1443422cf7
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -175,7 +175,7 @@ void GLHook::RegisterHooks()
#elif ENABLED(RDOC_ANDROID)
const char *libraryName = "libEGL.so";
#else
const char *libraryName = "libGL.so";
const char *libraryName = "libGL.so.1";
#endif
LibraryHooks::RegisterLibraryHook(libraryName, &GLHooked);
+2 -2
View File
@@ -37,10 +37,10 @@ typedef int (*X11ErrorHandler)(Display *display, XErrorEvent *error);
void *GetGLHandle()
{
void *handle = Process::LoadModule("libGL.so");
void *handle = Process::LoadModule("libGL.so.1");
if(!handle)
handle = Process::LoadModule("libGL.so.1");
handle = Process::LoadModule("libGL.so");
return handle;
}