mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 08:03:45 +01: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
@ -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…
Reference in New Issue
Block a user