Make views a per-frame deal

This commit is contained in:
Manish Goregaokar 2020-05-13 13:48:41 -07:00
parent bdfa6b0751
commit 708824700f
7 changed files with 33 additions and 32 deletions

View file

@ -85,7 +85,12 @@ impl XRFrameMethods for XRFrame {
} else {
return Ok(None);
};
Ok(Some(XRViewerPose::new(&self.global(), &self.session, pose)))
Ok(Some(XRViewerPose::new(
&self.global(),
&self.session,
pose,
&self.data.views,
)))
}
/// https://immersive-web.github.io/webxr/#dom-xrframe-getpose