diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2019-06-10 16:53:39 -0700 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2019-06-11 10:10:41 -0700 |
commit | 7d029d5a36c04b220bcfca4b3cc8f24fb906cc19 (patch) | |
tree | 257ef2c931954497d4c70629cf0c1f760fc9deda /components/script | |
parent | 2af8e0ef9fb8e3672bce3e3a423d6ed67ac4c738 (diff) | |
download | servo-7d029d5a36c04b220bcfca4b3cc8f24fb906cc19.tar.gz servo-7d029d5a36c04b220bcfca4b3cc8f24fb906cc19.zip |
Use correct length in FakeXRDeviceController.setViews()
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/dom/fakexrdevicecontroller.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/fakexrdevicecontroller.rs b/components/script/dom/fakexrdevicecontroller.rs index 3d051283155..a7ed2833716 100644 --- a/components/script/dom/fakexrdevicecontroller.rs +++ b/components/script/dom/fakexrdevicecontroller.rs @@ -62,8 +62,8 @@ impl FakeXRDeviceControllerMethods for FakeXRDeviceController { if left.projectionMatrix.len() != 16 || right.projectionMatrix.len() != 16 || - left.viewOffset.position.len() != 4 || - right.viewOffset.position.len() != 4 + left.viewOffset.position.len() != 3 || + right.viewOffset.position.len() != 3 { return Err(Error::Type("Incorrectly sized array".into())); } |