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().
macos/v1.5.9
Eric Anholt 11 years ago
parent 28c2dcb99b
commit 26880549bc
  1. 2
      src/dispatch_common.c

@ -405,6 +405,8 @@ epoxy_get_proc_address(const char *name)
{ {
#ifdef _WIN32 #ifdef _WIN32
return wglGetProcAddress(name); return wglGetProcAddress(name);
#elif defined(__APPLE__)
return epoxy_gl_dlsym(name);
#else #else
if (api.egl_handle) { if (api.egl_handle) {
#if PLATFORM_HAS_EGL #if PLATFORM_HAS_EGL

Loading…
Cancel
Save