Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/JackD83/ALVR
Browse files Browse the repository at this point in the history
  • Loading branch information
JackD83 committed Oct 13, 2020
2 parents 7f999b9 + a60f470 commit 9b9bc00
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 41 deletions.
87 changes: 47 additions & 40 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion alvr/server_driver/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = 'alvr_server_driver'
version = "12.3.0"
version = "12.4.0"
authors = ['Riccardo Zaglia <[email protected]>']
license = 'MIT'
edition = '2018'
Expand Down
22 changes: 22 additions & 0 deletions alvr/web_server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,28 @@ async fn client_discovery(session_manager: Arc<Mutex<SessionManager>>) {
}
}

// patch for Oculus Quest 2
{
let session_manager_ref = &mut session_manager.lock().unwrap();
let session_desc_ref = &mut session_manager_ref
.get_mut(SERVER_SESSION_UPDATE_ID, SessionUpdateType::Settings);

session_desc_ref.settings_cache.video.eye_fov = [
FovDefault {
left: client_handshake_packet.client_fov[0].left,
right: client_handshake_packet.client_fov[0].right,
top: client_handshake_packet.client_fov[0].top,
bottom: client_handshake_packet.client_fov[0].bottom,
},
FovDefault {
left: client_handshake_packet.client_fov[1].left,
right: client_handshake_packet.client_fov[1].right,
top: client_handshake_packet.client_fov[1].top,
bottom: client_handshake_packet.client_fov[1].bottom,
},
];
}

let settings = session_manager.lock().unwrap().get().to_settings();

let video_width;
Expand Down

0 comments on commit 9b9bc00

Please sign in to comment.