mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02: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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user