- fixed incompletely initialized secplanes in sprite splitting code.

The recent optimization of the shader setup needs the negiC value properly set.
This commit is contained in:
Christoph Oelckers 2018-11-13 20:36:23 +01:00
parent 55f17fa90c
commit a6b44b02b7

View file

@ -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)