Don't crash when shaders are disabled when drawing snow
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14934 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -569,7 +569,8 @@ void ParticleEmitter::setParticleType(const ParticleKind* type)
|
||||
const bool flips = type->getFlips();
|
||||
if (flips)
|
||||
{
|
||||
m_node->getMaterial(0).MaterialType = irr_driver->getShader(ES_SNOW);
|
||||
if (irr_driver->isGLSL())
|
||||
m_node->getMaterial(0).MaterialType = irr_driver->getShader(ES_SNOW);
|
||||
m_node->getMaterial(0).BlendOperation = video::EBO_ADD;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user