Use correct length in FakeXRDeviceController.setViews()

This commit is contained in:
Manish Goregaokar 2019-06-10 16:53:39 -07:00
parent 2af8e0ef9f
commit 7d029d5a36

View file

@ -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()));
}