mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Use correct length in FakeXRDeviceController.setViews()
This commit is contained in:
parent
2af8e0ef9f
commit
7d029d5a36
1 changed files with 2 additions and 2 deletions
|
@ -62,8 +62,8 @@ impl FakeXRDeviceControllerMethods for FakeXRDeviceController {
|
||||||
|
|
||||||
if left.projectionMatrix.len() != 16 ||
|
if left.projectionMatrix.len() != 16 ||
|
||||||
right.projectionMatrix.len() != 16 ||
|
right.projectionMatrix.len() != 16 ||
|
||||||
left.viewOffset.position.len() != 4 ||
|
left.viewOffset.position.len() != 3 ||
|
||||||
right.viewOffset.position.len() != 4
|
right.viewOffset.position.len() != 3
|
||||||
{
|
{
|
||||||
return Err(Error::Type("Incorrectly sized array".into()));
|
return Err(Error::Type("Incorrectly sized array".into()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue