From 77cb68e47fba8a8015d68a6cb8c8eaf8cce0d36c Mon Sep 17 00:00:00 2001 From: sebcrozet Date: Tue, 2 Apr 2019 20:04:44 +0200 Subject: [PATCH] Fix missing identifier. --- nalgebra-glm/src/ext/matrix_clip_space.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nalgebra-glm/src/ext/matrix_clip_space.rs b/nalgebra-glm/src/ext/matrix_clip_space.rs index 17b95b6f..d7ab44db 100644 --- a/nalgebra-glm/src/ext/matrix_clip_space.rs +++ b/nalgebra-glm/src/ext/matrix_clip_space.rs @@ -811,7 +811,7 @@ pub fn reversed_infinite_perspective_rh_no(aspect: N, fovy: N, nea mat[(0, 0)] = f / aspect; mat[(1, 1)] = f; - mat[(2, 3)] = two * near; + mat[(2, 3)] = near * crate::convert(2.0); mat[(3, 2)] = -N::one(); mat