Fixed: Crash under Linux saying you can't use X in multi-threaded environment

--HG--
branch : develop
hg/feature/material-editor
kervala 9 years ago
parent 884730ea78
commit 4a02370266

@ -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…
Cancel
Save