diff --git a/cube/cube.c b/cube/cube.c index 5ccd30259..b4db7500c 100644 --- a/cube/cube.c +++ b/cube/cube.c @@ -3895,7 +3895,7 @@ static void demo_check_and_set_wsi_platform(struct demo *demo) { } } if (qnx_extension_available) { - demo->wsi_platform = WSI_PLATFORM_ANDROID; + demo->wsi_platform = WSI_PLATFORM_QNX; return; } } diff --git a/cube/cube.cpp b/cube/cube.cpp index ef43a4b7b..bad2cccb1 100644 --- a/cube/cube.cpp +++ b/cube/cube.cpp @@ -3791,7 +3791,7 @@ void Demo::run() { if (pause || !initialized || !swapchain_ready) { } else { - update_data_buffer(); + update_data_buffer(submission_resources[current_submission_index].uniform_memory_ptr); draw(); if (!is_minimized) { curFrame++; @@ -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;