Fixed rendering of wrapped midtex with sky ceiling

https://forum.zdoom.org/viewtopic.php?t=58311
This commit is contained in:
alexey.lysiuk 2017-12-29 14:37:09 +02:00
parent a670e79b8a
commit 33213f5d5d

View file

@ -828,7 +828,7 @@ void GLWall::DoMidTexture(seg_t * seg, bool drawfogboundary,
back->GetTexture(sector_t::ceiling) == skyflatnum) back->GetTexture(sector_t::ceiling) == skyflatnum)
{ {
// intra-sky lines do not clip the texture at all if there's no upper texture // intra-sky lines do not clip the texture at all if there's no upper texture
topleft = topright = texturetop; topleft = topright = wrap ? 1e16f : texturetop;
} }
else else
{ {