diff --git a/src/graphics/stkmeshscenenode.cpp b/src/graphics/stkmeshscenenode.cpp index 045fef6c6..10013d1bc 100644 --- a/src/graphics/stkmeshscenenode.cpp +++ b/src/graphics/stkmeshscenenode.cpp @@ -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)