mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-19 06:51:09 +00:00
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:
parent
6c2ad3efaf
commit
2a1d595173
2 changed files with 4 additions and 2 deletions
|
@ -429,7 +429,8 @@ 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);
|
||||
General.Map.CRenderer2D.Surfaces.UnlockBuffers();
|
||||
|
|
|
@ -1575,7 +1575,8 @@ namespace CodeImp.DoomBuilder.Rendering
|
|||
graphics.SetAlphaBlendEnable(false);
|
||||
graphics.SetAlphaTestEnable(false);
|
||||
graphics.SetUniform(UniformName.texturefactor, new Color4(1f, 1f, 1f, 1f));
|
||||
SetWorldTransformation(true);
|
||||
graphics.SetUniform(UniformName.desaturation, 0.0f);
|
||||
SetWorldTransformation(true);
|
||||
SetDisplay2DSettings(1f, 1f, 0f, 1f, General.Settings.ClassicBilinear);
|
||||
|
||||
// Prepare for rendering
|
||||
|
|
Loading…
Reference in a new issue