Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Initialize X11 thread safety
Browse files Browse the repository at this point in the history
  • Loading branch information
paradust7 authored and sfan5 committed Dec 10, 2023
1 parent a2884e4 commit bb7c06d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/Irrlicht/CIrrDeviceLinux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit bb7c06d

Please sign in to comment.