diff options
author | Juha-Pekka Heikkila <[email protected]> | 2014-04-02 16:13:56 +0300 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2014-04-02 19:54:37 +0300 |
commit | 1056c50d574eebaf5a1769f52d95b022aaf27c80 (patch) | |
tree | 1bb518c85675780e9490d1491328f1c6cb1b73f2 /src | |
parent | 88976daea950937749b8b9f122b8d038606942a4 (diff) |
glx: add extra null check in getFBConfigs
Signed-off-by: Juha-Pekka Heikkila <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/glx/glxext.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |