Rename variable for recentering

This commit is contained in:
Patrick Nicolas
2024-10-08 19:48:23 +02:00
parent aa91c978d5
commit 4c995c786c
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1049,6 +1049,6 @@ void scenes::stream::on_reference_space_changed(XrReferenceSpaceType space, XrTi
{
if (space == XrReferenceSpaceType::XR_REFERENCE_SPACE_TYPE_LOCAL)
{
local_dirty = true;
recenter_requested = true;
}
}
+1 -1
View File
@@ -84,7 +84,7 @@ private:
std::thread network_thread;
std::mutex tracking_control_mutex;
to_headset::tracking_control tracking_control;
std::atomic<bool> local_dirty = false;
std::atomic<bool> recenter_requested = false;
std::atomic<XrDuration> display_time_phase = 0;
std::atomic<XrDuration> display_time_period = 0;
std::optional<std::thread> tracking_thread;
+1 -1
View File
@@ -249,7 +249,7 @@ void scenes::stream::tracking()
packet.view_flags = flags;
packet.state_flags = 0;
if (local_dirty.exchange(false))
if (recenter_requested.exchange(false))
packet.state_flags = wivrn::from_headset::tracking::recentered;
packet.device_poses.clear();