diff options
author | Mike Morris <michael.patrick.morris@gmail.com> | 2014-10-09 15:16:01 -0400 |
---|---|---|
committer | Mike Morris <michael.patrick.morris@gmail.com> | 2014-10-09 15:16:01 -0400 |
commit | 356cf956f413bbf4c4e69a849350f8fc0194356a (patch) | |
tree | 56f77c5f45ba40af77b85d6c04c06947ba3fe123 | |
parent | dfb81fe9ce796c06263c4b531cdba4d0e8571808 (diff) | |
download | qtlocation-mapboxgl-356cf956f413bbf4c4e69a849350f8fc0194356a.tar.gz |
XInitThreads
-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) { |