mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-29 15:11:56 +00:00
Added some explanatory comments to source code
This commit is contained in:
parent
b24a2dda84
commit
d16ffe135a
1 changed files with 4 additions and 1 deletions
|
@ -282,8 +282,11 @@ namespace CodeImp.DoomBuilder.Rendering
|
||||||
// Make the projection matrix
|
// Make the projection matrix
|
||||||
projection = Matrix.PerspectiveFov(fovy, aspect, PROJ_NEAR_PLANE, General.Settings.ViewDistance);
|
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();
|
CreateMatrices2D();
|
||||||
|
|
||||||
crosshairverts = null;
|
crosshairverts = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue