From 908d3c280092cf1210e6df031c3eb18687266391 Mon Sep 17 00:00:00 2001 From: Boden Garman Date: Sun, 1 Dec 2013 17:46:05 +1100 Subject: [PATCH] Fix ortho asserts --- src/cgmath/projection.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cgmath/projection.rs b/src/cgmath/projection.rs index c308e26..3eb305f 100644 --- a/src/cgmath/projection.rs +++ b/src/cgmath/projection.rs @@ -214,9 +214,9 @@ impl Projection for Ortho { impl ToMat4 for Ortho { fn to_mat4(&self) -> Mat4 { - assert!(self.left > self.right, "`left` cannot be greater than `right`, found: left: {:?} right: {:?}", self.left, self.right); - assert!(self.bottom > self.top, "`bottom` cannot be greater than `top`, found: bottom: {:?} top: {:?}", self.bottom, self.top); - assert!(self.near > self.far, "`near` cannot be greater than `far`, found: near: {:?} far: {:?}", self.near, self.far); + assert!(self.left < self.right, "`left` cannot be greater than `right`, found: left: {:?} right: {:?}", self.left, self.right); + assert!(self.bottom < self.top, "`bottom` cannot be greater than `top`, found: bottom: {:?} top: {:?}", self.bottom, self.top); + assert!(self.near < self.far, "`near` cannot be greater than `far`, found: near: {:?} far: {:?}", self.near, self.far); let two: S = cast(2).unwrap();