diff options
Diffstat (limited to 'cube/cube.cpp')
| -rw-r--r-- | cube/cube.cpp | 2 |
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(); |
