Fix xrviewport.height

This commit is contained in:
Manish Goregaokar 2019-03-25 22:27:05 -07:00
parent 2e48606569
commit 77e857891a

View file

@ -57,7 +57,7 @@ impl XRViewportMethods for XRViewport {
/// https://immersive-web.github.io/webxr/#dom-xrviewport-width
fn Width(&self) -> i32 {
self.height as i32
self.width as i32
}
/// https://immersive-web.github.io/webxr/#dom-xrviewport-height