Fixes for compiling with disabled xcb, or disabled xlib & xcb

This commit is contained in:
baldurk
2017-09-19 16:57:40 +01:00
parent 9e102f801a
commit 3f2d82acfb
4 changed files with 14 additions and 3 deletions
+2
View File
@@ -372,11 +372,13 @@ int main(int argc, char *argv[])
GlobalEnvironment env;
#if defined(RENDERDOC_WINDOWING_XLIB) || defined(RENDERDOC_WINDOWING_XCB)
// call XInitThreads - although we don't use xlib concurrently the driver might need to.
XInitThreads();
// we don't check if display successfully opened, it's only a problem if it's needed later.
display = env.xlibDisplay = XOpenDisplay(NULL);
#endif
#if defined(RENDERDOC_SUPPORT_VULKAN)
VerifyVulkanLayer(env, argc, argv);