From 26880549bc5db7cfd99a82b80ca113c5273bf35a Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sun, 15 Dec 2013 20:21:02 -0800 Subject: [PATCH] Fix loading of extension functions on OS X. For a non-GLX application, at least, we need to pull our extensions using dlsym, not glXGetProcAddress(). The symptom was a segfault in glXGetProcAddress(). --- src/dispatch_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dispatch_common.c b/src/dispatch_common.c index 11498a7..2af95a3 100644 --- a/src/dispatch_common.c +++ b/src/dispatch_common.c @@ -405,6 +405,8 @@ epoxy_get_proc_address(const char *name) { #ifdef _WIN32 return wglGetProcAddress(name); +#elif defined(__APPLE__) + return epoxy_gl_dlsym(name); #else if (api.egl_handle) { #if PLATFORM_HAS_EGL