The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

t/common: fix valve index hand tracker crash when SLAM tracking is not enabled

+1 -1
+1 -1
src/xrt/targets/common/target_builder_lighthouse.c
··· 385 385 // Initialize hand tracker 386 386 struct xrt_slam_sinks *hand_sinks = NULL; 387 387 struct xrt_device *hand_devices[2] = {NULL}; 388 - struct xrt_hand_masks_sink *masks_sink = slam_sinks->hand_masks; 388 + struct xrt_hand_masks_sink *masks_sink = (slam_enabled ? slam_sinks->hand_masks : NULL); 389 389 if (hand_enabled) { 390 390 bool success = valve_index_hand_track( // 391 391 lhs, //