diff options
| author | Bastiaan Olij <mux213@gmail.com> | 2023-06-29 10:05:39 +1000 |
|---|---|---|
| committer | Bastiaan Olij <mux213@gmail.com> | 2023-06-29 10:05:39 +1000 |
| commit | 72bd997fe81e258989527bddbc43290c0de4141c (patch) | |
| tree | 1eb5e19d1880bf19b1b73f1420a2908a16706bc3 /modules/openxr | |
| parent | c83f912bcb33d441b90afe36bad38880acbe5f15 (diff) | |
| download | redot-engine-72bd997fe81e258989527bddbc43290c0de4141c.tar.gz | |
Fix issue with accessing hand tracking without timing info
Diffstat (limited to 'modules/openxr')
| -rw-r--r-- | modules/openxr/extensions/openxr_hand_tracking_extension.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/openxr/extensions/openxr_hand_tracking_extension.cpp b/modules/openxr/extensions/openxr_hand_tracking_extension.cpp index 6fffa1ed07..65559afed0 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; |
