From dd695faee34c9b95fe4f1fd5b7a7247e5612036d Mon Sep 17 00:00:00 2001 From: Yaron Cohen-Tal Date: Sun, 30 Aug 2015 10:41:48 +0300 Subject: [PATCH] Remove redundant code in "epoxy_get_bootstrap_proc_address". --- src/dispatch_common.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/dispatch_common.c b/src/dispatch_common.c index d8a0abb..0d4f68f 100644 --- a/src/dispatch_common.c +++ b/src/dispatch_common.c @@ -609,16 +609,8 @@ epoxy_get_bootstrap_proc_address(const char *name) } #endif /* EPOXY_SUPPORT_EGL */ - /* If we already have a library that links to libglapi loaded, - * use that. - */ -#if EPOXY_SUPPORT_GLX - if (api.glx_handle && glXGetCurrentContext()) - return epoxy_gl_dlsym(name); -#endif - - /* Fall back to GLX */ return epoxy_gl_dlsym(name); + } void *