summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2014-10-09 15:16:01 -0400
committerMike Morris <michael.patrick.morris@gmail.com>2014-10-09 15:16:01 -0400
commit356cf956f413bbf4c4e69a849350f8fc0194356a (patch)
tree56f77c5f45ba40af77b85d6c04c06947ba3fe123
parentdfb81fe9ce796c06263c4b531cdba4d0e8571808 (diff)
downloadqtlocation-mapboxgl-356cf956f413bbf4c4e69a849350f8fc0194356a.tar.gz
XInitThreads
-rw-r--r--common/headless_display.cpp4
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) {