st/oxr: Fix local[e]_ref_space typo

This commit is contained in:
Christoph Haag 2022-02-28 14:40:59 +01:00 committed by Jakob Bornecrantz
parent 031a53d6fd
commit f633680506

View file

@ -233,11 +233,11 @@ oxr_stage_ref_relation(struct oxr_logger *log,
} }
static XrResult static XrResult
oxr_locale_ref_relation(struct oxr_logger *log, oxr_local_ref_relation(struct oxr_logger *log,
struct oxr_session *sess, struct oxr_session *sess,
struct oxr_space *baseSpc, struct oxr_space *baseSpc,
XrTime time, XrTime time,
struct xrt_space_relation *out_relation) struct xrt_space_relation *out_relation)
{ {
if (baseSpc->type == XR_REFERENCE_SPACE_TYPE_STAGE) { if (baseSpc->type == XR_REFERENCE_SPACE_TYPE_STAGE) {
out_relation->pose = sess->initial_head_relation.pose; out_relation->pose = sess->initial_head_relation.pose;
@ -274,7 +274,7 @@ oxr_space_ref_relation(struct oxr_logger *log,
} else if (space->type == XR_REFERENCE_SPACE_TYPE_STAGE) { } else if (space->type == XR_REFERENCE_SPACE_TYPE_STAGE) {
oxr_stage_ref_relation(log, sess, baseSpc, time, out_relation); oxr_stage_ref_relation(log, sess, baseSpc, time, out_relation);
} else if (space->type == XR_REFERENCE_SPACE_TYPE_LOCAL) { } else if (space->type == XR_REFERENCE_SPACE_TYPE_LOCAL) {
oxr_locale_ref_relation(log, sess, baseSpc, time, out_relation); oxr_local_ref_relation(log, sess, baseSpc, time, out_relation);
} else { } else {
out_relation->relation_flags = XRT_SPACE_RELATION_BITMASK_NONE; out_relation->relation_flags = XRT_SPACE_RELATION_BITMASK_NONE;
return XR_SUCCESS; return XR_SUCCESS;