projects
/
platform
/
upstream
/
Vulkan-Tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bee5dd
)
demos: Add XInitThreads to xlib path of cubes
author
Tony Barbour
<tony@LunarG.com>
Tue, 31 Jan 2017 23:09:58 +0000
(16:09 -0700)
committer
Tony Barbour
<tony@LunarG.com>
Wed, 1 Feb 2017 16:02:33 +0000
(09:02 -0700)
Change-Id: Idb2991972bdd91c3e48ad5d796de4b31d7138c98
demos/cube.c
patch
|
blob
|
history
demos/cube.cpp
patch
|
blob
|
history
diff --git
a/demos/cube.c
b/demos/cube.c
index
2efbfb0
..
0abffae
100644
(file)
--- a/
demos/cube.c
+++ b/
demos/cube.c
@@
-2241,6
+2241,7
@@
static void demo_create_window(struct demo *demo) {
#elif defined(VK_USE_PLATFORM_XLIB_KHR)
static void demo_create_xlib_window(struct demo *demo) {
+ XInitThreads();
demo->display = XOpenDisplay(NULL);
long visualMask = VisualScreenMask;
int numberOfVisuals;
diff --git
a/demos/cube.cpp
b/demos/cube.cpp
index
a7bb7a0
..
e5fa6ae
100644
(file)
--- 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;