mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 22:05:38 +00:00
OpenGLContext: Try libEGL.so.1 as well as libEGL.so
This commit is contained in:
parent
d1a1cab9a9
commit
51b3fabd31
|
@ -26,13 +26,19 @@ static bool LoadEGL()
|
||||||
{
|
{
|
||||||
DebugAssert(!s_egl_library.IsOpen());
|
DebugAssert(!s_egl_library.IsOpen());
|
||||||
|
|
||||||
const std::string egl_libname = DynamicLibrary::GetVersionedFilename("libEGL");
|
std::string egl_libname = DynamicLibrary::GetVersionedFilename("libEGL");
|
||||||
Log_InfoFmt("Loading EGL from {}...", egl_libname);
|
Log_InfoFmt("Loading EGL from {}...", egl_libname);
|
||||||
|
|
||||||
Error error;
|
Error error;
|
||||||
|
if (!s_egl_library.Open(egl_libname.c_str(), &error))
|
||||||
|
{
|
||||||
|
// Try versioned.
|
||||||
|
egl_libname = DynamicLibrary::GetVersionedFilename("libEGL", 1);
|
||||||
|
Log_InfoFmt("Loading EGL from {}...", egl_libname);
|
||||||
if (!s_egl_library.Open(egl_libname.c_str(), &error))
|
if (!s_egl_library.Open(egl_libname.c_str(), &error))
|
||||||
Log_ErrorFmt("Failed to load EGL: {}", error.GetDescription());
|
Log_ErrorFmt("Failed to load EGL: {}", error.GetDescription());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return s_egl_library.IsOpen();
|
return s_egl_library.IsOpen();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue