Commit 488665c5 authored by Kevin Qin's avatar Kevin Qin Committed by Commit Bot

Fix WebXR Local-Floor Wrong Initial Position Using OpenXR

Reverse the order of xrlocatespace so we can get the correct transform
from local to stage

Bug: 1000808
Change-Id: Ie6aa7b644ea2c6b730a17e5544995051d5f471cf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1816291Reviewed-by: default avatarAlexander Cooper <alcooper@chromium.org>
Commit-Queue: Zheng Qin <zheqi@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#699036}
parent 0a86f988
......@@ -683,7 +683,7 @@ bool OpenXrApiWrapper::GetStageParameters(XrExtent2Df* stage_bounds,
return false;
XrSpaceLocation location = {XR_TYPE_SPACE_LOCATION};
if (FAILED(xrLocateSpace(stage_space_, local_space_,
if (FAILED(xrLocateSpace(local_space_, stage_space_,
frame_state_.predictedDisplayTime, &location)) ||
!(location.locationFlags & XR_SPACE_LOCATION_ORIENTATION_VALID_BIT) ||
!(location.locationFlags & XR_SPACE_LOCATION_POSITION_VALID_BIT)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment