Fixed a problem where the display was desaturated in certain situations in classic modes when wireframe rendering was enabled when exiting Visual Mode. Fixes #619

Fixed a problem where sectors were not desaturated correctly in classic modes on map load
This commit is contained in:
biwa 2022-02-12 12:14:50 +01:00
parent 6c2ad3efaf
commit 2a1d595173
2 changed files with 4 additions and 2 deletions

View file

@ -429,6 +429,7 @@ namespace CodeImp.DoomBuilder.Map
flatvertices.CopyTo(updateinfo.floorvertices, 0);
General.Plugins.OnSectorFloorSurfaceUpdate(this, ref updateinfo.floorvertices);
updateinfo.floortexture = longfloortexname;
updateinfo.desaturation = this.Desaturation;
// Update entry
General.Map.CRenderer2D.Surfaces.UpdateSurfaces(surfaceentries, updateinfo);

View file

@ -1575,6 +1575,7 @@ namespace CodeImp.DoomBuilder.Rendering
graphics.SetAlphaBlendEnable(false);
graphics.SetAlphaTestEnable(false);
graphics.SetUniform(UniformName.texturefactor, new Color4(1f, 1f, 1f, 1f));
graphics.SetUniform(UniformName.desaturation, 0.0f);
SetWorldTransformation(true);
SetDisplay2DSettings(1f, 1f, 0f, 1f, General.Settings.ClassicBilinear);