mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 01:48:31 +00:00
st/oxr: Fix local[e]_ref_space typo
This commit is contained in:
parent
031a53d6fd
commit
f633680506
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue