diff --git a/src/xrt/state_trackers/oxr/oxr_session_frame_end.c b/src/xrt/state_trackers/oxr/oxr_session_frame_end.c index 3c482c027..18f3193ea 100644 --- a/src/xrt/state_trackers/oxr/oxr_session_frame_end.c +++ b/src/xrt/state_trackers/oxr/oxr_session_frame_end.c @@ -805,7 +805,9 @@ handle_space(struct oxr_logger *log, } struct xrt_space_relation rel; - oxr_space_pure_pose_from_space(log, timestamp, &pose, spc, &rel); + if (!oxr_space_pure_pose_from_space(log, timestamp, &pose, spc, &rel)) { + return false; + } *out_pose = rel.pose; return true; diff --git a/src/xrt/state_trackers/oxr/oxr_space.c b/src/xrt/state_trackers/oxr/oxr_space.c index 69f773dd1..a92ae2313 100644 --- a/src/xrt/state_trackers/oxr/oxr_space.c +++ b/src/xrt/state_trackers/oxr/oxr_space.c @@ -253,7 +253,9 @@ oxr_space_pure_relation_from_space(struct oxr_logger *log, { struct xrt_space_relation pure_space_relation; struct xrt_device *xdev; - oxr_space_get_pure_relation(log, spc, time, &pure_space_relation, &xdev); + if (!oxr_space_get_pure_relation(log, spc, time, &pure_space_relation, &xdev)) { + return false; + } struct xrt_relation_chain xrc = {0}; m_relation_chain_push_relation(&xrc, &pure_space_relation);