aboutsummaryrefslogtreecommitdiff
path: root/demos/cube.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'demos/cube.cpp')
-rw-r--r--demos/cube.cpp3
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);
}