From 32633cb10478930a15322d4054466a37a571402a Mon Sep 17 00:00:00 2001 From: Jeremy Hayes Date: Wed, 16 Nov 2016 14:54:41 -0700 Subject: demos: call DeviceWaitIdle before DestroyDevice Change-Id: Ic5819027b706e8c5d66ae78d0d0da1133c16085b --- demos/cube.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demos/cube.cpp') 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); -- cgit v1.2.3