Merge pull request #166 from nwnk/assert

dispatch: assert, not errx, when we have no context
macos/v1.5.9
Emmanuele Bassi 7 years ago committed by GitHub
commit fc5750ca01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/dispatch_common.c

@ -859,7 +859,7 @@ epoxy_get_proc_address(const char *name)
#elif PLATFORM_HAS_GLX #elif PLATFORM_HAS_GLX
if (epoxy_current_context_is_glx()) if (epoxy_current_context_is_glx())
return glXGetProcAddressARB((const GLubyte *)name); return glXGetProcAddressARB((const GLubyte *)name);
errx(1, "Couldn't find current GLX or EGL context.\n"); assert(0 && "Couldn't find current GLX or EGL context.\n");
#endif #endif
return NULL; return NULL;

Loading…
Cancel
Save