Remove FoV from headset info packet
This commit is contained in:
@@ -30,7 +30,6 @@
|
||||
#include "util/u_logging.h"
|
||||
#include "utils/method.h"
|
||||
|
||||
#include "xrt_cast.h"
|
||||
#include <cstdint>
|
||||
#include <stdio.h>
|
||||
#include <openxr/openxr.h>
|
||||
@@ -128,10 +127,6 @@ wivrn_hmd::wivrn_hmd(wivrn::wivrn_session * cnx,
|
||||
hmd->views[1].display.w_pixels = eye_width;
|
||||
hmd->views[1].display.h_pixels = eye_height;
|
||||
hmd->views[1].rot = u_device_rotation_ident;
|
||||
|
||||
// FOV from headset info packet
|
||||
hmd->distortion.fov[0] = xrt_cast(info.fov[0]);
|
||||
hmd->distortion.fov[1] = xrt_cast(info.fov[1]);
|
||||
}
|
||||
|
||||
xrt_result_t wivrn_hmd::update_inputs()
|
||||
|
||||
@@ -1232,14 +1232,6 @@ std::pair<bool, std::optional<std::string>> wivrn_session::validate_headset_info
|
||||
// only allow connecting from the "same" headset
|
||||
refuse |= prev_info.system_name != info.system_name;
|
||||
|
||||
for (uint32_t i = 0; i < 2; i++)
|
||||
{
|
||||
refuse |= prev_info.fov[i].angleDown != info.fov[i].angleDown;
|
||||
refuse |= prev_info.fov[i].angleUp != info.fov[i].angleUp;
|
||||
refuse |= prev_info.fov[i].angleRight != info.fov[i].angleRight;
|
||||
refuse |= prev_info.fov[i].angleLeft != info.fov[i].angleLeft;
|
||||
}
|
||||
|
||||
refuse |= prev_info.palm_pose != info.palm_pose;
|
||||
refuse |= prev_info.user_presence != info.user_presence;
|
||||
refuse |= prev_info.passthrough != info.passthrough;
|
||||
|
||||
Reference in New Issue
Block a user