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:
parent
e78fc5e6b6
commit
e2c5b1d3e1
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user