diff options
author | Emmanuele Bassi <ebassi@gmail.com> | 2018-04-12 16:37:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-12 16:37:19 +0100 |
commit | fc5750ca017489cfa57a2b24bc48032a9be71497 (patch) | |
tree | 0ee32eb16000bcd1a7ff48b294161fb8a156b8b1 | |
parent | 74dbb7bac9357a60e83a3c8993876eab95fd0792 (diff) | |
parent | f7486f7753f4ddd58adb476985dcf5962e442172 (diff) | |
download | libepoxy-fc5750ca017489cfa57a2b24bc48032a9be71497.tar.gz |
Merge pull request #166 from nwnk/assert
dispatch: assert, not errx, when we have no context
-rw-r--r-- | src/dispatch_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |