From f7486f7753f4ddd58adb476985dcf5962e442172 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 12 Apr 2018 11:04:10 -0400 Subject: [PATCH] dispatch: assert, not errx, when we have no context errx() calls exit(), you'd rather get a backtrace. Signed-off-by: Adam Jackson --- src/dispatch_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispatch_common.c b/src/dispatch_common.c index bc2fb94..1eccb3b 100644 --- a/src/dispatch_common.c +++ b/src/dispatch_common.c @@ -859,7 +859,7 @@ epoxy_get_proc_address(const char *name) #elif PLATFORM_HAS_GLX if (epoxy_current_context_is_glx()) 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 return NULL;