Added some explanatory comments to source code

This commit is contained in:
biwa 2022-09-13 19:45:27 +02:00
parent b24a2dda84
commit d16ffe135a

View file

@ -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;
}