From cdf89b9175f08726296e7986953ac8cf30aba705 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 17 Apr 2021 18:32:40 +0200 Subject: [PATCH] - portal rendering fix when viewing through two-sided walls outside the actual portal area. If there's more portal area behind such a line its range in the clipper needs to be cleared again. --- source/core/rendering/scene/hw_bunchdrawer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/core/rendering/scene/hw_bunchdrawer.cpp b/source/core/rendering/scene/hw_bunchdrawer.cpp index 03ff9a5d5..ca7bba269 100644 --- a/source/core/rendering/scene/hw_bunchdrawer.cpp +++ b/source/core/rendering/scene/hw_bunchdrawer.cpp @@ -215,6 +215,7 @@ int BunchDrawer::ClipLine(int line, bool portal) } else { + if (portal) clipper->SafeRemoveClipRange(startAngle, endAngle); return CL_Draw | CL_Pass; } }