Work around crash in render code. Vlj, please review this, this is likely not the proper fix
This commit is contained in:
parent
f76536ca31
commit
3fb98fe85f
@ -132,9 +132,12 @@ void STKMeshSceneNode::drawGlow(const GLMesh &mesh)
|
|||||||
computeMVP(ModelViewProjectionMatrix);
|
computeMVP(ModelViewProjectionMatrix);
|
||||||
MeshShader::ColorizeShader::setUniforms(ModelViewProjectionMatrix, cb->getRed(), cb->getGreen(), cb->getBlue());
|
MeshShader::ColorizeShader::setUniforms(ModelViewProjectionMatrix, cb->getRed(), cb->getGreen(), cb->getBlue());
|
||||||
|
|
||||||
|
if (mesh.vao_glow_pass != 0)
|
||||||
|
{
|
||||||
glBindVertexArray(mesh.vao_glow_pass);
|
glBindVertexArray(mesh.vao_glow_pass);
|
||||||
glDrawElements(ptype, count, itype, 0);
|
glDrawElements(ptype, count, itype, 0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void STKMeshSceneNode::drawDisplace(const GLMesh &mesh)
|
void STKMeshSceneNode::drawDisplace(const GLMesh &mesh)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user