mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
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:
parent
f836a47bc1
commit
670bb32b2c
1 changed files with 0 additions and 1 deletions
|
@ -1008,7 +1008,6 @@ video::SMaterial ParticleManager::getMaterialForParticle(const ClientParticleTex
|
|||
video::EMFN_MODULATE_1X,
|
||||
video::EAS_TEXTURE | video::EAS_VERTEX_COLOR);
|
||||
material.BlendOperation = blendop;
|
||||
assert(texture.ref);
|
||||
material.setTexture(0, texture.ref);
|
||||
|
||||
return material;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue