From 95cfb8b1ba7fbcbe1383302ff286808c34e1fb9e Mon Sep 17 00:00:00 2001 From: Aaron Ruby Date: Wed, 17 Sep 2025 13:17:37 -0400 Subject: cube.cpp: Wrap execute impl around VK_USE_PLATFORM_DISPLAY_KHR This only needs implemeneted if VK_USE_PLATFORM_DISPLAY_KHR is defined, otherwise run() impl is not available! --- cube/cube.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cube/cube.cpp') diff --git a/cube/cube.cpp b/cube/cube.cpp index fd48810a..bad2cccb 100644 --- a/cube/cube.cpp +++ b/cube/cube.cpp @@ -4149,6 +4149,7 @@ void Demo::execute() { run(); } +#if defined(VK_USE_PLATFORM_DISPLAY_KHR) template <> void Demo::execute() { select_physical_device(); @@ -4161,6 +4162,7 @@ void Demo::execute() { run(); } +#endif int main(int argc, char **argv) { Demo demo; -- cgit v1.2.3