aboutsummaryrefslogtreecommitdiff
path: root/demos/cube.cpp
diff options
context:
space:
mode:
authorJeremy Hayes <jeremy@lunarg.com>2016-11-16 14:54:41 -0700
committerJeremy Hayes <jeremy-lunarg@users.noreply.github.com>2016-11-18 14:11:43 -0700
commit32633cb10478930a15322d4054466a37a571402a (patch)
tree0db926f1b25479b3b8233fd7ba918c78c6c16836 /demos/cube.cpp
parent6ae1f8af9ebe406c3989afc4703ade78666d698f (diff)
downloadusermoji-32633cb10478930a15322d4054466a37a571402a.tar.xz
demos: call DeviceWaitIdle before DestroyDevice
Change-Id: Ic5819027b706e8c5d66ae78d0d0da1133c16085b
Diffstat (limited to 'demos/cube.cpp')
-rw-r--r--demos/cube.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/cube.cpp b/demos/cube.cpp
index d7e84364..24917e8b 100644
--- a/demos/cube.cpp
+++ b/demos/cube.cpp
@@ -337,7 +337,7 @@ struct Demo {
if (separate_present_queue) {
device.destroyCommandPool(present_cmd_pool, nullptr);
}
-
+ device.waitIdle();
device.destroy(nullptr);
inst.destroySurfaceKHR(surface, nullptr);
inst.destroy(nullptr);