From 1a9fc63a57a30cf59f41718c933eea2d414660cb Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Mon, 2 Nov 2009 13:25:41 +0000 Subject: [PATCH] * Matrix4d.cs: M44 should be 1.0 to conform with GL.Ortho(). Fixes issue [#1307]: "GL.Ortho behaves other than combination of OpenTK.Matrix4d.CreateOrthographic and GL.MultMatrix". --- Source/OpenTK/Math/Matrix4d.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/OpenTK/Math/Matrix4d.cs b/Source/OpenTK/Math/Matrix4d.cs index 367a7b00..95a7408f 100644 --- a/Source/OpenTK/Math/Matrix4d.cs +++ b/Source/OpenTK/Math/Matrix4d.cs @@ -513,6 +513,7 @@ namespace OpenTK result.M41 = -(right + left) * invRL; result.M42 = -(top + bottom) * invTB; result.M43 = -(zFar + zNear) * invFN; + result.M44 = 1; } ///