From 7ae16b34234de63757afeb5213e4ea34628a5ecb Mon Sep 17 00:00:00 2001 From: Darkspear7 Date: Sun, 2 Nov 2014 02:00:12 +0200 Subject: [PATCH] Removed constraints on ortographic projection function to allow bigger values for left, bottom, near than right, top, far. --- src/projection.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/projection.rs b/src/projection.rs index 2645a86..52d8932 100644 --- a/src/projection.rs +++ b/src/projection.rs @@ -215,10 +215,6 @@ impl Projection for Ortho { impl ToMatrix4 for Ortho { 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); - let two: S = cast(2i).unwrap(); let c0r0 = two / (self.right - self.left);