fixed crash during material reload

This commit is contained in:
Mikulas Florek 2015-04-15 22:50:10 +02:00
parent fad0334cfe
commit d38e450872

View file

@ -865,7 +865,7 @@ struct PipelineInstanceImpl : public PipelineInstance
const Material& material = *mesh->getMaterial();
Shader* shader = material.getShader();
uint32_t pass_hash = getRenderer().getPass();
if (!shader->hasPass(pass_hash) || !material.isReady())
if (!material.isReady() || !shader->hasPass(pass_hash))
{
return false;
}