aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Hayes <jeremy@lunarg.com>2017-06-20 11:25:02 -0600
committerJeremy Hayes <jeremy-lunarg@users.noreply.github.com>2017-06-20 12:31:50 -0600
commit9ebbd2299da779bfd6b718f2519f6182a2204b4f (patch)
tree621dab99ee3ad94bd66a98178e7273e40d2ebc01
parent5ffc5ec513cdb7d68b6da95c0963f7c6f6e23c0d (diff)
downloadusermoji-9ebbd2299da779bfd6b718f2519f6182a2204b4f.tar.xz
demos: Add missing break
Treat suboptimal as success. Change-Id: I18f0e8592e212c4d1f99294de24cac945bcdb7c3
-rw-r--r--demos/cube.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/cube.cpp b/demos/cube.cpp
index 3ef4f4ea..a9965719 100644
--- a/demos/cube.cpp
+++ b/demos/cube.cpp
@@ -453,6 +453,7 @@ struct Demo {
} else if (result == vk::Result::eSuboptimalKHR) {
// swapchain is not as optimal as it could be, but the platform's
// presentation engine will still present the image correctly.
+ break;
} else {
VERIFY(result == vk::Result::eSuccess);
}