diff options
Diffstat (limited to 'src/glx')
-rw-r--r-- | src/glx/glxext.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/glx/glxext.c b/src/glx/glxext.c index f6bc377..9ef7ff5 100644 --- a/src/glx/glxext.c +++ b/src/glx/glxext.c @@ -748,8 +748,11 @@ glx_screen_init(struct glx_screen *psc, psc->dpy = priv->dpy; psc->display = priv; - getVisualConfigs(psc, priv, screen); - getFBConfigs(psc, priv, screen); + if (!getVisualConfigs(psc, priv, screen)) + return GL_FALSE; + + if (!getFBConfigs(psc, priv, screen)) + return GL_FALSE; return GL_TRUE; } |