Skip to content
Permalink
Browse files

Use correct length in FakeXRDeviceController.setViews()

  • Loading branch information...
Manishearth committed Jun 10, 2019
1 parent 2af8e0e commit 7d029d5a36c04b220bcfca4b3cc8f24fb906cc19
Showing with 2 additions and 2 deletions.
  1. +2 −2 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()));
}

0 comments on commit 7d029d5

Please sign in to comment.
You can’t perform that action at this time.