From 72bd997fe81e258989527bddbc43290c0de4141c Mon Sep 17 00:00:00 2001 From: Bastiaan Olij Date: Thu, 29 Jun 2023 10:05:39 +1000 Subject: [PATCH] Fix issue with accessing hand tracking without timing info --- modules/openxr/extensions/openxr_hand_tracking_extension.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/openxr/extensions/openxr_hand_tracking_extension.cpp b/modules/openxr/extensions/openxr_hand_tracking_extension.cpp index 6fffa1ed07ca..65559afed021 100644 --- a/modules/openxr/extensions/openxr_hand_tracking_extension.cpp +++ b/modules/openxr/extensions/openxr_hand_tracking_extension.cpp @@ -134,6 +134,10 @@ void OpenXRHandTrackingExtension::on_process() { // process our hands const XrTime time = OpenXRAPI::get_singleton()->get_next_frame_time(); // This data will be used for the next frame we render + if (time == 0) { + // we don't have timing info yet, or we're skipping a frame... + return; + } XrResult result;