From a6b44b02b716e91ddf077cfec2f00a8b1acb7b21 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 13 Nov 2018 20:36:23 +0100 Subject: [PATCH] - fixed incompletely initialized secplanes in sprite splitting code. The recent optimization of the shader setup needs the negiC value properly set. --- src/hwrenderer/scene/hw_sprites.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hwrenderer/scene/hw_sprites.cpp b/src/hwrenderer/scene/hw_sprites.cpp index f3935dab6..94e86beb4 100644 --- a/src/hwrenderer/scene/hw_sprites.cpp +++ b/src/hwrenderer/scene/hw_sprites.cpp @@ -207,8 +207,8 @@ void GLSprite::DrawSprite(HWDrawInfo *di, FRenderState &state, bool translucent) state.EnableSplit(true); } - secplane_t bottomp = { { 0, 0, -1. }, bottomclip }; - secplane_t topp = { { 0, 0, -1. }, topclip }; + secplane_t bottomp = { { 0, 0, -1. }, bottomclip, 1. }; + secplane_t topp = { { 0, 0, -1. }, topclip, 1. }; for (unsigned i = 0; i < iter; i++) { if (lightlist)