Skip to content

Commit 3f9b148

Browse files
cubepp: Wrap execute<WsiPlatform::display> impl around VK_USE_PLATFORM_DISPLAY_KHR
This only needs implemeneted if VK_USE_PLATFORM_DISPLAY_KHR is defined, otherwise run<WsiPlatform::display>() impl is not available!
1 parent fb9a69a commit 3f9b148

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cube/cube.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4149,6 +4149,7 @@ void Demo::execute() {
41494149
run<WSI_PLATFORM>();
41504150
}
41514151

4152+
#if defined(VK_USE_PLATFORM_DISPLAY_KHR)
41524153
template <>
41534154
void Demo::execute<WsiPlatform::display>() {
41544155
select_physical_device();
@@ -4161,6 +4162,7 @@ void Demo::execute<WsiPlatform::display>() {
41614162

41624163
run<WsiPlatform::display>();
41634164
}
4165+
#endif
41644166

41654167
int main(int argc, char **argv) {
41664168
Demo demo;

0 commit comments

Comments
 (0)