From 2046bc6bf9ffc35f1637ffcb34185ed94379859a Mon Sep 17 00:00:00 2001 From: Jens Koenen <koenen@vr.rwth-aachen.de> Date: Thu, 10 Nov 2022 14:12:00 +0100 Subject: [PATCH] Fixed mistake --- src/headset/openxr_headset.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/headset/openxr_headset.cpp b/src/headset/openxr_headset.cpp index a9d3038f..eaabc826 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!"); -- GitLab