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