diff options
Diffstat (limited to 'src/dispatch_egl.c')
-rw-r--r-- | src/dispatch_egl.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/dispatch_egl.c b/src/dispatch_egl.c index f555a58..3f0c789 100644 --- a/src/dispatch_egl.c +++ b/src/dispatch_egl.c @@ -109,11 +109,13 @@ epoxy_has_egl(void) #if !PLATFORM_HAS_EGL return false; #else - EGLDisplay* (* pf_eglGetCurrentDisplay) (void); + if (epoxy_load_egl(false, true)) { + EGLDisplay* (* pf_eglGetCurrentDisplay) (void); - pf_eglGetCurrentDisplay = epoxy_conservative_egl_dlsym("eglGetCurrentDisplay", false); - if (pf_eglGetCurrentDisplay) - return true; + pf_eglGetCurrentDisplay = epoxy_conservative_egl_dlsym("eglGetCurrentDisplay", false); + if (pf_eglGetCurrentDisplay) + return true; + } return false; #endif /* PLATFORM_HAS_EGL */ |