From 1073c8ccac4c179c47d4dac7dc8f8bb7e92c8033 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; } ///