[Fix] (MG_Util/BackendLoaders, MG_Impl/GetProcAddress): fixing hiccups when load by LD_LIBRARY_PATH

This commit is contained in:
2026-01-17 13:04:44 +08:00
parent 35fd55d4be
commit 8a388f3908
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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};