diff --git a/include/epoxy/gl.h b/include/epoxy/gl.h index 49ca270..333b5e4 100644 --- a/include/epoxy/gl.h +++ b/include/epoxy/gl.h @@ -86,6 +86,7 @@ extern "C" { EPOXY_IMPORTEXPORT bool epoxy_has_gl_extension(const char *extension); EPOXY_IMPORTEXPORT bool epoxy_is_desktop_gl(void); EPOXY_IMPORTEXPORT int epoxy_gl_version(void); +EPOXY_IMPORTEXPORT bool epoxy_current_context_is_egl(void); #ifdef __cplusplus } /* extern "C" */ diff --git a/src/dispatch_common.c b/src/dispatch_common.c index f3570bd..6766082 100644 --- a/src/dispatch_common.c +++ b/src/dispatch_common.c @@ -196,8 +196,6 @@ static struct api api = { static bool library_initialized; -static bool epoxy_current_context_is_egl(void); - #if EPOXY_SUPPORT_EGL static EGLenum epoxy_egl_get_current_gl_context_api(void); @@ -405,7 +403,7 @@ epoxy_internal_has_gl_extension(const char *ext, bool invalid_op_mode) /** * Tests whether the currently bound context is EGL or other (GLX, WGL, etc.). */ -static bool +EPOXY_IMPORTEXPORT bool epoxy_current_context_is_egl(void) { #if EPOXY_SUPPORT_EGL