From 9ebbd2299da779bfd6b718f2519f6182a2204b4f Mon Sep 17 00:00:00 2001 From: Jeremy Hayes Date: Tue, 20 Jun 2017 11:25:02 -0600 Subject: demos: Add missing break Treat suboptimal as success. Change-Id: I18f0e8592e212c4d1f99294de24cac945bcdb7c3 --- demos/cube.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'demos/cube.cpp') 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); } -- cgit v1.2.3