Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -260,8 +260,7 @@ std::pair<XrTime, xrt_space_relation> 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);
|
||||
|
||||
|
||||
@@ -567,7 +567,7 @@ std::optional<wivrn::video_encoder::data> 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;
|
||||
|
||||
Reference in New Issue
Block a user