From a40c617478d2fa912bc6e8abb996ba6d8b397f2e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 24 Dec 2018 13:44:08 +0100 Subject: [PATCH] - initialize the index field for particles. This won't contribute to sort order so it should be the same for all particles, which it wasn't because it was never set. --- src/hwrenderer/scene/hw_sprites.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hwrenderer/scene/hw_sprites.cpp b/src/hwrenderer/scene/hw_sprites.cpp index 17e794892..ac4389713 100644 --- a/src/hwrenderer/scene/hw_sprites.cpp +++ b/src/hwrenderer/scene/hw_sprites.cpp @@ -1164,6 +1164,7 @@ void GLSprite::ProcessParticle (HWDrawInfo *di, particle_t *particle, sector_t * gltexture=nullptr; topclip = LARGE_VALUE; bottomclip = -LARGE_VALUE; + index = 0; // [BB] Load the texture for round or smooth particles if (gl_particles_style)