summaryrefslogtreecommitdiff
path: root/src/dispatch_common.c
diff options
context:
space:
mode:
authorYaron Cohen-Tal <yaronct@gmail.com>2016-07-29 17:55:49 +0300
committerYaron Cohen-Tal <yaronct@gmail.com>2016-07-29 17:55:49 +0300
commitb8d609e8f9fc1f9c4ff359adb2c1c44619a9e7cf (patch)
tree7e9146fae46326dd15ad2175e40d7b8ec95f878d /src/dispatch_common.c
parentc342cba2a1b882f30b1864b5819bdb8986f5ee9c (diff)
downloadlibepoxy-b8d609e8f9fc1f9c4ff359adb2c1c44619a9e7cf.tar.gz
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
Diffstat (limited to 'src/dispatch_common.c')
-rw-r--r--src/dispatch_common.c2
1 files changed, 2 insertions, 0 deletions
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);