From 2210bd4e2d3288361537d94c9c21eafdf92b276e Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 31 Oct 2026 12:49:05 +0100 Subject: [PATCH] opengl: fix opaque fof planes checking the wrong sector for encore remap it should check its own "master" sector for remap behavior NOT the sector it resides in note: i did not change the ceiling/floor behavior here as i noticed there might be more issues than this with fofs --- src/hardware/hw_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hardware/hw_main.cpp b/src/hardware/hw_main.cpp index 25acb72bc..4efaf513e 100644 --- a/src/hardware/hw_main.cpp +++ b/src/hardware/hw_main.cpp @@ -2962,7 +2962,7 @@ static void HWR_Subsector(size_t num) } else { - HWR_GetFlat(flatlump, R_NoEncore(gl_frontsector, !bottom)); + HWR_GetFlat(flatlump, R_NoEncore(rover->master->frontsector, !bottom)); light = R_GetPlaneLight(gl_frontsector, centerHeight, underside); HWR_RenderPlane(sub, &extrasubsectors[num], !bottom, roverheight, HWR_RippleBlend(gl_frontsector, rover, false)|PF_Occlude, *gl_frontsector->lightlist[light].lightlevel, flatlump,