fixed crash during material reload
This commit is contained in:
parent
fad0334cfe
commit
d38e450872
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue