Particles: fix crash caused by absent texture

Introduced in commit f8bff34. The related code does already expect that
'texture.ref' may be nullptr.
This commit is contained in:
SmallJoker 2024-05-29 19:46:24 +02:00
parent f836a47bc1
commit 670bb32b2c

@ -1008,7 +1008,6 @@ video::SMaterial ParticleManager::getMaterialForParticle(const ClientParticleTex
video::EMFN_MODULATE_1X, video::EMFN_MODULATE_1X,
video::EAS_TEXTURE | video::EAS_VERTEX_COLOR); video::EAS_TEXTURE | video::EAS_VERTEX_COLOR);
material.BlendOperation = blendop; material.BlendOperation = blendop;
assert(texture.ref);
material.setTexture(0, texture.ref); material.setTexture(0, texture.ref);
return material; return material;