From 68bf4a10b24381749b1720dc81640e233ff34b1b Mon Sep 17 00:00:00 2001 From: paul4334 Date: Tue, 6 Dec 2016 15:19:05 -0800 Subject: [PATCH] Update glx_context.c Fix crash when glXGetClientString returns a null string --- src/glx_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glx_context.c b/src/glx_context.c index 23030161e..2faf599ca 100644 --- a/src/glx_context.c +++ b/src/glx_context.c @@ -59,7 +59,7 @@ static GLFWbool chooseGLXFBConfig(const _GLFWfbconfig* desired, GLXFBConfig* res // HACK: This is a (hopefully temporary) workaround for Chromium // (VirtualBox GL) not setting the window bit on any GLXFBConfigs vendor = glXGetClientString(_glfw.x11.display, GLX_VENDOR); - if (strcmp(vendor, "Chromium") == 0) + if (vendor && strcmp(vendor, "Chromium") == 0) trustWindowBit = GLFW_FALSE; nativeConfigs =