From a4ead97cfd0493b5416a954b5d4aac304f25fbde Mon Sep 17 00:00:00 2001 From: Yaron Cohen-Tal Date: Sat, 31 Oct 2015 20:31:42 +0200 Subject: [PATCH] Make "epoxy_current_context_is_egl" visible. --- include/epoxy/gl.h | 1 + src/dispatch_common.c | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) 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