aboutsummaryrefslogtreecommitdiff
path: root/cube/cube.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cube/cube.cpp')
-rw-r--r--cube/cube.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cube/cube.cpp b/cube/cube.cpp
index 2e423922..e5b2782b 100644
--- a/cube/cube.cpp
+++ b/cube/cube.cpp
@@ -809,7 +809,7 @@ void Demo::draw() {
} else if (result == vk::Result::eSuboptimalKHR) {
// SUBOPTIMAL could be due to resize
vk::SurfaceCapabilitiesKHR surfCapabilities;
- auto result = gpu.getSurfaceCapabilitiesKHR(surface, &surfCapabilities);
+ result = gpu.getSurfaceCapabilitiesKHR(surface, &surfCapabilities);
VERIFY(result == vk::Result::eSuccess);
if (surfCapabilities.currentExtent.width != width || surfCapabilities.currentExtent.height != height) {
resize();