aboutsummaryrefslogtreecommitdiff
path: root/cube/cube.cpp
diff options
context:
space:
mode:
authorJuan Ramos <juan@lunarg.com>2023-10-06 11:53:54 -0600
committerJuan Ramos <114601453+juan-lunarg@users.noreply.github.com>2023-10-06 15:09:59 -0600
commita4a8db5a8a9c55f1cd668ecb1bad8b4f66a68d46 (patch)
tree513d101e4b9455d2c16865de56d72de8d0ee31de /cube/cube.cpp
parent76967b12e90c5c9b8e2a099b1a9b2bd8d21ef431 (diff)
downloadusermoji-a4a8db5a8a9c55f1cd668ecb1bad8b4f66a68d46.tar.xz
cmake: Upgrade to C++17
Addresses various other issues with setting compiler flags. CMAKE_C_FLAGS / CMAKE_CXX_FLAGS should NOT be used anymore. Addressed one minor C++17 issue caused by [[nodiscard]]. Remove compiler flags from Application.mk since they weren't needed and will soon be entirely replaced by CMake. closes #711
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 a59e6dbe..005226e6 100644
--- a/cube/cube.cpp
+++ b/cube/cube.cpp
@@ -664,7 +664,8 @@ void Demo::destroy_texture(texture_object &tex_objs) {
void Demo::draw() {
// Ensure no more than FRAME_LAG renderings are outstanding
- device.waitForFences(fences[frame_index], VK_TRUE, UINT64_MAX);
+ const vk::Result wait_result = device.waitForFences(fences[frame_index], VK_TRUE, UINT64_MAX);
+ VERIFY(wait_result == vk::Result::eSuccess || wait_result == vk::Result::eTimeout);
device.resetFences({fences[frame_index]});
vk::Result acquire_result;