From b8d609e8f9fc1f9c4ff359adb2c1c44619a9e7cf Mon Sep 17 00:00:00 2001 From: Yaron Cohen-Tal Date: Fri, 29 Jul 2016 17:55:49 +0300 Subject: [PATCH] Fox some X server not supporting any OpenGL feature, glXQueryExtensionsString will return NULL and causes the function to fail. Thanx to Emmanuel Stapf (manus@eiffel.com) for the original patch. This was verified running an application on macOS while the X server was running on Windows Xming 7.5.0.10 --- src/dispatch_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dispatch_common.c b/src/dispatch_common.c index 6766082..368de9e 100644 --- a/src/dispatch_common.c +++ b/src/dispatch_common.c @@ -359,6 +359,8 @@ epoxy_conservative_gl_version(void) bool epoxy_extension_in_string(const char *extension_list, const char *ext) { + if (!extension_list) + return false; const char *ptr = extension_list; size_t len = strlen(ext);