mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Give inline sessions the correct projection matrices
This commit is contained in:
parent
a1c1a16e98
commit
8aaa8493a7
4 changed files with 108 additions and 27 deletions
|
@ -42,7 +42,13 @@ impl XRViewerPose {
|
|||
) -> DomRoot<XRViewerPose> {
|
||||
rooted_vec!(let mut views);
|
||||
session.with_session(|s| match s.views() {
|
||||
Views::Inline => unimplemented!(),
|
||||
Views::Inline => views.push(XRView::new(
|
||||
global,
|
||||
session,
|
||||
&session.inline_view(),
|
||||
XREye::None,
|
||||
&pose,
|
||||
)),
|
||||
Views::Mono(view) => {
|
||||
views.push(XRView::new(global, session, &view, XREye::None, &pose))
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue