From 515323dcbd681ca7974745b756391237b4617602 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 15 Apr 2018 08:29:40 +0200 Subject: [PATCH] - fixed: Rendering a translucent mid texture did not unset the render style for the following bottom texture. With additive translucency and non-black fog this caused visual errors. --- src/gl/scene/gl_walls.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gl/scene/gl_walls.cpp b/src/gl/scene/gl_walls.cpp index 919ce374c0..0b9f6c60fc 100644 --- a/src/gl/scene/gl_walls.cpp +++ b/src/gl/scene/gl_walls.cpp @@ -1085,6 +1085,7 @@ void GLWall::DoMidTexture(seg_t * seg, bool drawfogboundary, // restore some values that have been altered in this function glseg=glsave; flags&=~(GLT_CLAMPX|GLT_CLAMPY|GLWF_NOSPLITUPPER|GLWF_NOSPLITLOWER); + RenderStyle = STYLE_Normal; }