diff options
author | Eric Anholt <eric@anholt.net> | 2013-12-15 20:21:02 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2013-12-15 22:41:01 -0800 |
commit | 26880549bc5db7cfd99a82b80ca113c5273bf35a (patch) | |
tree | 177c817f299e6d0274d6ded283375cb4141ee202 /src | |
parent | 28c2dcb99b7b7deb26b4066d850ad4ba3705f7f7 (diff) |
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().
Diffstat (limited to 'src')
-rw-r--r-- | src/dispatch_common.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |