From d16ffe135a115a7687414cbbd96a7437c2b9aea3 Mon Sep 17 00:00:00 2001 From: biwa <6475593+biwa@users.noreply.github.com> Date: Tue, 13 Sep 2022 19:45:27 +0200 Subject: [PATCH] Added some explanatory comments to source code --- Source/Core/Rendering/Renderer3D.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Core/Rendering/Renderer3D.cs b/Source/Core/Rendering/Renderer3D.cs index 77e0f591..9b15aad8 100755 --- a/Source/Core/Rendering/Renderer3D.cs +++ b/Source/Core/Rendering/Renderer3D.cs @@ -282,8 +282,11 @@ namespace CodeImp.DoomBuilder.Rendering // Make the projection matrix projection = Matrix.PerspectiveFov(fovy, aspect, PROJ_NEAR_PLANE, General.Settings.ViewDistance); + // We also need to re-create the 2D matrices, otherwise the corsshair will be distorted after the viewport is resized. See + // https://github.com/jewalky/UltimateDoomBuilder/issues/321 + // and + // https://github.com/jewalky/UltimateDoomBuilder/issues/777 CreateMatrices2D(); - crosshairverts = null; }