mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-21 00:18:43 +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);
|
||||
|
||||
// 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