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, 2 insertions, 0 deletions
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<WSI_PLATFORM>();
}
+#if defined(VK_USE_PLATFORM_DISPLAY_KHR)
template <>
void Demo::execute<WsiPlatform::display>() {
select_physical_device();
@@ -4161,6 +4162,7 @@ void Demo::execute<WsiPlatform::display>() {
run<WsiPlatform::display>();
}
+#endif
int main(int argc, char **argv) {
Demo demo;