Fixed EGL library name on Linux (#3122)

* Fixed EGL library name on Linux

* Cleanup.

---------

Co-authored-by: Dahmen issam <issam.dahmen@fittingbox.com>
Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>
This commit is contained in:
issam3105 2023-07-04 18:11:07 +02:00 committed by GitHub
parent e78fc5e6b6
commit e2c5b1d3e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,7 +82,14 @@ EGL_IMPORT
void* eglOpen()
{
void* handle = bx::dlopen("libEGL." BX_DL_EXT);
void* handle = bx::dlopen(
#if BX_PLATFORM_LINUX
"libEGL.so.1"
#else
"libEGL." BX_DL_EXT
#endif // BX_PLATFORM_*
);
BGFX_FATAL(NULL != handle, Fatal::UnableToInitialize, "Failed to load libEGL dynamic library.");
#define EGL_IMPORT_FUNC(_proto, _func) \