From 784b9d8fa1df8098b052eaf25c1eaf8abf28c828 Mon Sep 17 00:00:00 2001 From: Ben Foppa Date: Fri, 18 Jul 2014 11:55:53 -0400 Subject: [PATCH] Fix inverted asserts --- src/projection.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/projection.rs b/src/projection.rs index 7f05663..9ed41c0 100644 --- a/src/projection.rs +++ b/src/projection.rs @@ -159,9 +159,9 @@ impl Projection for Perspective { impl ToMatrix4 for Perspective { fn to_matrix4(&self) -> Matrix4 { - 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(2i).unwrap();