Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Handle StereoCapture in GetViewport()
  • Loading branch information
Manishearth committed May 13, 2020
1 parent b181e0c commit da3d2a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/script/dom/xrwebgllayer.rs
Expand Up @@ -249,8 +249,11 @@ impl XRWebGLLayerMethods for XRWebGLLayer {
Rect::new(origin, self.size().cast())
},
(XREye::None, Views::Mono(view)) => view.viewport,
(XREye::None, Views::StereoCapture(_, _, view)) => view.viewport,
(XREye::Left, Views::Stereo(view, _)) => view.viewport,
(XREye::Left, Views::StereoCapture(view, _, _)) => view.viewport,
(XREye::Right, Views::Stereo(_, view)) => view.viewport,
(XREye::Right, Views::StereoCapture(_, view, _)) => view.viewport,
_ => return None,
};

Expand Down

0 comments on commit da3d2a8

Please sign in to comment.