glx: add extra null check in getFBConfigs
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
committed by
Tapani Pälli
parent
88976daea9
commit
1056c50d57
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user