- fixed incompletely initialized secplanes in sprite splitting code.

(patch by Graf)

# Conflicts:
#	src/hwrenderer/scene/hw_sprites.cpp

LZDoom was not affected tough.

# Conflicts:
#	src/gl/scene/gl_sprite.cpp
This commit is contained in:
drfrag666 2018-11-14 10:51:03 +01:00
parent 57efd617fa
commit f9fff8bbce

View file

@ -412,8 +412,8 @@ void GLSprite::Draw(int pass)
gl_RenderState.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)