diff --git a/meson.build b/meson.build index 7d85265..9e47dab 100644 --- a/meson.build +++ b/meson.build @@ -169,6 +169,9 @@ if not gl_dep.found() and not build_glx gl_dep = dependency('opengl', required: false) endif egl_dep = dependency('egl', required: false) +if not egl_dep.found() + egl_dep = cc.find_library('libEGL', required: false) +endif elg_headers_dep = egl_dep.partial_dependency(compile_args: true, includes: true) # Optional dependencies for tests diff --git a/src/dispatch_common.c b/src/dispatch_common.c index 9f3dac4..1f941b2 100644 --- a/src/dispatch_common.c +++ b/src/dispatch_common.c @@ -185,7 +185,7 @@ #define GLES2_LIB "libGLESv2.so" #elif defined(_WIN32) #define EGL_LIB "libEGL.dll" -#define GLES1_LIB "libGLES_CM.dll" +#define GLES1_LIB "libGLESv1_CM.dll" #define GLES2_LIB "libGLESv2.dll" #define OPENGL_LIB "OPENGL32" #else