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:
stephenjust
2014-01-05 22:56:27 +00:00
parent 62f815ff68
commit 78ca6f2b9c

View File

@@ -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;
}
}