d/multi: Use xrt_device_get_tracked_pose function

This commit is contained in:
Jakob Bornecrantz 2022-03-16 11:43:57 +00:00 committed by Moses Turner
parent 36a540a764
commit 6f10a20ce0

View file

@ -195,7 +195,12 @@ get_view_poses(struct xrt_device *xdev,
struct xrt_device *target = d->tracking_override.target;
xrt_device_get_view_poses(target, default_eye_relation, at_timestamp_ns, view_count, out_head_relation,
out_fovs, out_poses);
get_tracked_pose(xdev, XRT_INPUT_GENERIC_HEAD_POSE, at_timestamp_ns, out_head_relation);
/*
* Use xrt_device_ function to be sure it is exactly
* like if the state-tracker called this function.
*/
xrt_device_get_tracked_pose(xdev, XRT_INPUT_GENERIC_HEAD_POSE, at_timestamp_ns, out_head_relation);
}
static bool