From 1056c50d574eebaf5a1769f52d95b022aaf27c80 Mon Sep 17 00:00:00 2001 From: Juha-Pekka Heikkila Date: Wed, 2 Apr 2014 16:13:56 +0300 Subject: [PATCH] glx: add extra null check in getFBConfigs Signed-off-by: Juha-Pekka Heikkila Reviewed-by: Brian Paul --- src/glx/glxext.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/glx/glxext.c b/src/glx/glxext.c index 4a195bd40ba..0838cd19251 100644 --- a/src/glx/glxext.c +++ b/src/glx/glxext.c @@ -677,6 +677,10 @@ static GLboolean psc->serverGLXexts = __glXQueryServerString(dpy, priv->majorOpcode, screen, GLX_EXTENSIONS); + if (psc->serverGLXexts == NULL) { + return GL_FALSE; + } + LockDisplay(dpy); psc->configs = NULL; -- 2.30.2