diff options
| author | Tony Barbour <tony@LunarG.com> | 2017-03-23 13:25:36 -0600 |
|---|---|---|
| committer | Tony Barbour <tony@LunarG.com> | 2017-03-23 13:35:00 -0600 |
| commit | a90a4f96c768a7f091c17fbb0892ad8939f396d7 (patch) | |
| tree | 8050b122bca7230b75172c81e9197079117ba78c /demos/cube.cpp | |
| parent | e31129cb2445fcdfed39e898215448f396741e3e (diff) | |
| download | usermoji-a90a4f96c768a7f091c17fbb0892ad8939f396d7.tar.xz | |
demos: Wait for fences before destroying swapchain
Addresses GH #1048
Change-Id: Ie94796bcd13dc506e1b97c483763df9023567ac6
Diffstat (limited to 'demos/cube.cpp')
| -rw-r--r-- | demos/cube.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/demos/cube.cpp b/demos/cube.cpp index 082ab4d0..588d1cd9 100644 --- a/demos/cube.cpp +++ b/demos/cube.cpp @@ -1339,6 +1339,9 @@ struct Demo { // Note: destroying the swapchain also cleans up all its associated // presentable images once the platform is done with them. if (oldSwapchain) { + // AMD driver times out waiting on fences used in AcquireNextImage on + // a swapchain that is subsequently destroyed before the wait. + device.waitForFences(FRAME_LAG, fences, VK_TRUE, UINT64_MAX); device.destroySwapchainKHR(oldSwapchain, nullptr); } |
