mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 08:10:09 +01:00
glx: return GL_FALSE from glx_screen_init where applicable.
Return GL_FALSE if we fail to find any fb/visual configs, otherwise we end up with all sorts of chaos further down the GLX stack. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
e542ed463d
commit
2e9e05dfca
1 changed files with 5 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue