Work around crash in render code. Vlj, please review this, this is likely not the proper fix

This commit is contained in:
Marianne Gagnon 2014-03-14 19:35:35 -04:00
parent f76536ca31
commit 3fb98fe85f

View File

@ -132,8 +132,11 @@ void STKMeshSceneNode::drawGlow(const GLMesh &mesh)
computeMVP(ModelViewProjectionMatrix);
MeshShader::ColorizeShader::setUniforms(ModelViewProjectionMatrix, cb->getRed(), cb->getGreen(), cb->getBlue());
glBindVertexArray(mesh.vao_glow_pass);
glDrawElements(ptype, count, itype, 0);
if (mesh.vao_glow_pass != 0)
{
glBindVertexArray(mesh.vao_glow_pass);
glDrawElements(ptype, count, itype, 0);
}
}
void STKMeshSceneNode::drawDisplace(const GLMesh &mesh)