Changed: Don't close a display already closed

--HG--
branch : develop
This commit is contained in:
kervala 2016-12-06 20:24:21 +01:00
parent 363dfb9a3c
commit fff0b5ce5b

View file

@ -501,8 +501,11 @@ bool CDriverGL::unInit()
// restore default X errors handler // restore default X errors handler
XSetErrorHandler(NULL); XSetErrorHandler(NULL);
XCloseDisplay(_dpy); if (_dpy)
_dpy = NULL; {
XCloseDisplay(_dpy);
_dpy = NULL;
}
#endif // NL_OS_UNIX #endif // NL_OS_UNIX