XInitThreads

This commit is contained in:
Mike Morris
2014-10-09 15:16:01 -04:00
parent dfb81fe9ce
commit 356cf956f4

View File

@@ -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) {