Fix mid textures not pushed into visible surface list

This commit is contained in:
RaveYard 2023-09-22 14:41:01 +02:00 committed by Christoph Oelckers
parent 5987b537c5
commit 2549b0fa57

View file

@ -1332,6 +1332,10 @@ void HWWall::DoMidTexture(HWDrawInfo *di, FRenderState& state, seg_t * seg, bool
if (auto lightmapPtr = seg->sidedef->lightmap)
{
lightmap = lightmapPtr[side_t::mid];
if (lightmap)
{
di->PushVisibleSurface(lightmap);
}
}
// Align the texture to the ORIGINAL sector's height!!