mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-30 07:35:59 +00:00
Fixed: Crash under Linux saying you can't use X in multi-threaded environment
This commit is contained in:
parent
e618275bec
commit
2d348c7f13
1 changed files with 6 additions and 0 deletions
|
@ -350,6 +350,12 @@ bool CDriverGL::init (uintptr_t windowIcon, emptyProc exitFunc)
|
||||||
|
|
||||||
nlunreferenced(windowIcon);
|
nlunreferenced(windowIcon);
|
||||||
|
|
||||||
|
// allow several threads to access X functions
|
||||||
|
if (XInitThreads() == 0)
|
||||||
|
{
|
||||||
|
nlwarning("XInitThreads failed");
|
||||||
|
}
|
||||||
|
|
||||||
_dpy = XOpenDisplay(NULL);
|
_dpy = XOpenDisplay(NULL);
|
||||||
|
|
||||||
if (_dpy == NULL)
|
if (_dpy == NULL)
|
||||||
|
|
Loading…
Reference in a new issue