The combination of recent refactor on release branch and
merge to master resulted in XinitThreads being called from
code that may be compiled even if X11 API is not available.
Components: Framework
VK-GL-CTS Issue: 450
Change-Id: Ia7d1d23eabd1b222d5039868c1fb762e1d42f01f
tcu::Platform* createPlatform (void)
{
+#if defined (DEQP_SUPPORT_X11)
// From man:XinitThreads(3):
//
// The XInitThreads function initializes Xlib support for concurrent
// a multi-threaded program calls, and it must complete before any other
// Xlib call is made.
DE_CHECK_RUNTIME_ERR(XInitThreads() != 0);
+#endif // DEQP_SUPPORT_X11
return new tcu::lnx::LinuxPlatform();
}