diff options
Diffstat (limited to 'common/headless_display.cpp')
-rw-r--r-- | common/headless_display.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/headless_display.cpp b/common/headless_display.cpp index b183b0a501..bbb1c10f51 100644 --- a/common/headless_display.cpp +++ b/common/headless_display.cpp @@ -24,6 +24,10 @@ HeadlessDisplay::HeadlessDisplay() { #endif #if MBGL_USE_GLX + if (!XInitThreads()) { + throw std::runtime_error("Failed to XInitThreads"); + } + x_display = XOpenDisplay(0); if (x_display == nullptr) { |