From 33213f5d5de2c3ca5f8ab446a36e7a48e2a64027 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 29 Dec 2017 14:37:09 +0200 Subject: [PATCH] Fixed rendering of wrapped midtex with sky ceiling https://forum.zdoom.org/viewtopic.php?t=58311 --- src/gl/scene/gl_walls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/scene/gl_walls.cpp b/src/gl/scene/gl_walls.cpp index 529d46bb56..470cd97768 100644 --- a/src/gl/scene/gl_walls.cpp +++ b/src/gl/scene/gl_walls.cpp @@ -828,7 +828,7 @@ void GLWall::DoMidTexture(seg_t * seg, bool drawfogboundary, back->GetTexture(sector_t::ceiling) == skyflatnum) { // 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 {