mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 14:38:06 +02:00
Add another missing check for uninitialized DRI.
Spotted by Chris Taylor.
This commit is contained in:
parent
f1e1267372
commit
94f39f2e7c
1 changed files with 2 additions and 1 deletions
|
|
@ -348,7 +348,8 @@ static void FreeScreenConfigs(__GLXdisplayPrivate *priv)
|
|||
Xfree((char*) psc->serverGLXexts);
|
||||
|
||||
#ifdef GLX_DIRECT_RENDERING
|
||||
psc->driScreen->destroyScreen(psc);
|
||||
if (psc->driScreen)
|
||||
psc->driScreen->destroyScreen(psc);
|
||||
#endif
|
||||
}
|
||||
XFree((char*) priv->screenConfigs);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue