mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-29 20:30:54 +00:00
Changed: Don't close a display already closed
--HG-- branch : develop
This commit is contained in:
parent
363dfb9a3c
commit
fff0b5ce5b
1 changed files with 5 additions and 2 deletions
|
@ -501,8 +501,11 @@ bool CDriverGL::unInit()
|
||||||
// restore default X errors handler
|
// restore default X errors handler
|
||||||
XSetErrorHandler(NULL);
|
XSetErrorHandler(NULL);
|
||||||
|
|
||||||
|
if (_dpy)
|
||||||
|
{
|
||||||
XCloseDisplay(_dpy);
|
XCloseDisplay(_dpy);
|
||||||
_dpy = NULL;
|
_dpy = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
#endif // NL_OS_UNIX
|
#endif // NL_OS_UNIX
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue