Fix context type detection if we find eglGetCurrentContext().

Fixes #29.
macos/v1.5.9
Eric Anholt 11 years ago
parent d56f21c494
commit 0096b79923
  1. 2
      src/dispatch_common.c

@ -378,7 +378,7 @@ epoxy_current_context_is_glx(void)
sym = dlsym(NULL, "eglGetCurrentContext"); sym = dlsym(NULL, "eglGetCurrentContext");
if (sym) { if (sym) {
if (epoxy_egl_get_current_gl_context_api() != EGL_NONE) if (epoxy_egl_get_current_gl_context_api() != EGL_NONE)
return true; return false;
} else { } else {
(void)dlerror(); (void)dlerror();
} }

Loading…
Cancel
Save