diff --git a/client/scenes/stream_gui.cpp b/client/scenes/stream_gui.cpp index 78d44f3a..227618f0 100644 --- a/client/scenes/stream_gui.cpp +++ b/client/scenes/stream_gui.cpp @@ -759,8 +759,10 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte { if (system.hand_tracking_supported()) { - left_hand = session.create_hand_tracker(XR_HAND_LEFT_EXT); - right_hand = session.create_hand_tracker(XR_HAND_RIGHT_EXT); + if (not left_hand) + left_hand = session.create_hand_tracker(XR_HAND_LEFT_EXT); + if (not right_hand) + right_hand = session.create_hand_tracker(XR_HAND_RIGHT_EXT); } } else diff --git a/server/driver/pose_list.cpp b/server/driver/pose_list.cpp index 2ac13c13..1b0c6868 100644 --- a/server/driver/pose_list.cpp +++ b/server/driver/pose_list.cpp @@ -260,8 +260,7 @@ std::pair pose_list::get_at(XrTime at_timestamp_ns) if (orientation.y) { - if (auto norm2 = orientation.y->squaredNorm(); - norm2 > 0.9 and norm2 < 1.1) + if (auto norm2 = orientation.y->squaredNorm(); norm2 > 0.1) { flags(XRT_SPACE_RELATION_ORIENTATION_VALID_BIT | XRT_SPACE_RELATION_ORIENTATION_TRACKED_BIT); diff --git a/server/encoder/video_encoder_vulkan.cpp b/server/encoder/video_encoder_vulkan.cpp index 51663bf1..23f73e46 100644 --- a/server/encoder/video_encoder_vulkan.cpp +++ b/server/encoder/video_encoder_vulkan.cpp @@ -567,7 +567,7 @@ std::optional wivrn::video_encoder_vulkan::encode(ui // We don't copy the whole buffer, but an estimate of how much we'll need // If that wasn't enough, we have to issue a second copy command for the rest - if (size > slot_item.copy_size) + if (slot_item.host_buffer and size > slot_item.copy_size) { U_LOG_D("additional copy needed: %ld", size - slot_item.copy_size); const bool main_queue = *slot_item.transfer_cmd_buf;