mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-11 20:40:30 +00:00
Fixes for compiling with disabled xcb, or disabled xlib & xcb
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user