mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-07 19:58:32 +09:00
[Fix] (MG_Util/BackendLoaders, MG_Impl/GetProcAddress): fixing hiccups when load by LD_LIBRARY_PATH
This commit is contained in:
@@ -1348,7 +1348,7 @@ namespace MobileGL {
|
||||
GETPROC(glFramebufferTextureMultiviewOVR, name);
|
||||
// GETPROC(glNamedFramebufferTextureMultiviewOVR, name);
|
||||
|
||||
MGLOG_W("GetProcAddress(%s) = nullptr!");
|
||||
MGLOG_W("GetProcAddress(%s) = nullptr!", name);
|
||||
return nullptr;
|
||||
}
|
||||
} // namespace MG_Impl
|
||||
|
||||
@@ -456,7 +456,8 @@ namespace MobileGL {
|
||||
void *libGLES = nullptr, *libEGL = nullptr;
|
||||
|
||||
static const char* LibPathPrefixes[] = {
|
||||
"", "/opt/vc/lib/", "/usr/local/lib/", "/usr/lib/", "/usr/lib/x86_64-linux-gnu/", nullptr};
|
||||
/*"", */ // We should never search in the current directory to avoid breaking LD_LIBRARY_PATH usage
|
||||
"/opt/vc/lib/", "/usr/local/lib/", "/usr/lib/", "/usr/lib/x86_64-linux-gnu/", nullptr};
|
||||
static const char* LibExts[] = {"so", "so.1", "so.2", "dylib", "dll", nullptr};
|
||||
static const char* GLES3Libs[] = {"libGLESv3_CM", "libGLESv3", "libGLESv2_CM", "libGLESv2", nullptr};
|
||||
static const char* EGLLibs[] = {"libEGL", nullptr};
|
||||
|
||||
Reference in New Issue
Block a user