aboutsummaryrefslogtreecommitdiff
path: root/demos/cube.cpp
diff options
context:
space:
mode:
authorTony Barbour <tony@LunarG.com>2017-01-31 16:09:58 -0700
committerTony Barbour <tony@LunarG.com>2017-02-01 09:02:33 -0700
commitee9cd37d587568b3ed4f32b620350331f4320d1e (patch)
tree442bbeaf7dfb09d01fa0c26cc75c2cf17d3acb78 /demos/cube.cpp
parent0bee5dd0f8508e606a4a2adc1fde4fe2ba263a89 (diff)
downloadusermoji-ee9cd37d587568b3ed4f32b620350331f4320d1e.tar.xz
demos: Add XInitThreads to xlib path of cubes
Change-Id: Idb2991972bdd91c3e48ad5d796de4b31d7138c98
Diffstat (limited to 'demos/cube.cpp')
-rw-r--r--demos/cube.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/cube.cpp b/demos/cube.cpp
index a7bb7a09..e5fa6ae2 100644
--- a/demos/cube.cpp
+++ b/demos/cube.cpp
@@ -2157,6 +2157,7 @@ struct Demo {
#elif defined(VK_USE_PLATFORM_XLIB_KHR)
void create_xlib_window() {
+ XInitThreads();
display = XOpenDisplay(nullptr);
long visualMask = VisualScreenMask;
int numberOfVisuals;