mirror of
https://github.com/minetest/irrlicht.git
synced 2024-09-27 15:00:27 +02:00
Initialize X11 thread safety
This commit is contained in:
parent
a2884e4000
commit
2dba24761d
|
@ -147,6 +147,11 @@ CIrrDeviceLinux::CIrrDeviceLinux(const SIrrlichtCreationParameters& param)
|
|||
// create keymap
|
||||
createKeyMap();
|
||||
|
||||
// initialize X11 thread safety
|
||||
// libX11 1.8+ has this on by default
|
||||
// without it, multi-threaded GL drivers may crash
|
||||
XInitThreads();
|
||||
|
||||
// create window
|
||||
if (CreationParams.DriverType != video::EDT_NULL)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user