diff --git a/src/headset/openxr_headset.cpp b/src/headset/openxr_headset.cpp index a9d3038ff90b534da7818f6b072fe5157c973341..eaabc82630ee577c0cd549426322c44f1a986c9c 100644 --- a/src/headset/openxr_headset.cpp +++ b/src/headset/openxr_headset.cpp @@ -419,6 +419,8 @@ void OpenXRHeadset::submit_frame(VkCommandBuffer command_buffer, VkImageLayout f this->end_frame(); } }; + + this->get_application()->get_renderer().add_submission(submission); } } @@ -909,7 +911,14 @@ bool OpenXRHeadset::update_actions() sync_info.countActiveActionSets = 1; sync_info.activeActionSets = &active_set; - if (xrSyncActions(this->session, &sync_info) != XR_SUCCESS) + XrResult result = xrSyncActions(this->session, &sync_info); + + if (result == XR_SESSION_NOT_FOCUSED) + { + return true; + } + + else if (result != XR_SUCCESS) { lava::log()->error("OpenXR: Can't sync action set!");