diff options
| author | Yuri Sizov <11782833+YuriSizov@users.noreply.github.com> | 2023-07-17 09:59:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-17 09:59:51 +0200 |
| commit | 52784188bf159e291a59a4846475995db34175c5 (patch) | |
| tree | 2c0f2caf63b3a635bfac73166e253a6788cf41e3 /modules/openxr | |
| parent | 851bc640ddf7225a4b52bb15cc50c249df119953 (diff) | |
| parent | 72bd997fe81e258989527bddbc43290c0de4141c (diff) | |
| download | redot-engine-52784188bf159e291a59a4846475995db34175c5.tar.gz | |
Merge pull request #78817 from BastiaanOlij/fix_startup_issue_hand_tracking
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; |
