Fix Ortho when the feature arbitrary is enabled.

This commit is contained in:
Sébastien Crozet 2016-03-31 21:44:42 +02:00
parent 2fa7ef0e00
commit 0dc3b91abd

View File

@ -67,7 +67,7 @@ impl<N: Arbitrary + BaseFloat> Arbitrary for Ortho3<N> {
let top = reject(g, |x: &N| *x > bottom);
let znear = Arbitrary::arbitrary(g);
let zfar = reject(g, |x: &N| *x > znear);
Ortho3::new(width, height, znear, zfar)
Ortho3::new(left, right, bottom, top, znear, zfar)
}
}