From d348377bd823a63b47fdc42ce451a89910229d24 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 8 Apr 2021 09:45:17 +0200 Subject: [PATCH] - when drawing skies on walls where both sides are sky, use the backside's texture. This fixes a sky anomaly in RR's E1L1. --- source/core/rendering/scene/hw_sky.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/core/rendering/scene/hw_sky.cpp b/source/core/rendering/scene/hw_sky.cpp index c5ba9a144..be63f3ca2 100644 --- a/source/core/rendering/scene/hw_sky.cpp +++ b/source/core/rendering/scene/hw_sky.cpp @@ -185,6 +185,7 @@ void HWWall::SkyTop(HWDrawInfo *di, walltype * seg,sectortype * fs,sectortype * // if the back sector is closed the sky must be drawn! if (c1 > f1 || c2 > f2) return; + fs = bs; // draw sky from the backsector. } flags |= HWF_SKYHACK; // mid textures on such lines need special treatment! @@ -241,6 +242,7 @@ void HWWall::SkyBottom(HWDrawInfo *di, walltype * seg,sectortype * fs,sectortype if (c1 > f1 || c2 > f2) return; } flags |= HWF_SKYHACK; // mid textures on such lines need special treatment! + fs = bs; // draw sky from the backsector. } else return;