aboutsummaryrefslogtreecommitdiff
path: root/cube/cube.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cube/cube.cpp')
-rw-r--r--cube/cube.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cube/cube.cpp b/cube/cube.cpp
index a448ddab..ef43a4b7 100644
--- a/cube/cube.cpp
+++ b/cube/cube.cpp
@@ -901,7 +901,8 @@ void Demo::draw() {
}
// Only reset right before submitting so we can't deadlock on an un-signalled fence that has nothing submitted to it
- device.resetFences({current_submission.fence});
+ auto reset_result = device.resetFences({current_submission.fence});
+ VERIFY(reset_result == vk::Result::eSuccess);
// Wait for the image acquired semaphore to be signaled to ensure
// that the image won't be rendered to until the presentation