Use glow vao.

This commit is contained in:
Vincent Lejeune
2014-01-18 19:56:35 +01:00
parent 5f7e6b2834
commit 47099fb1a3

View File

@@ -587,7 +587,7 @@ void drawGlow(const GLMesh &mesh, float r, float g, float b)
glUseProgram(ColorizeShader::Program);
ColorizeShader::setUniforms(ModelViewProjectionMatrix, r, g, b);
glBindVertexArray(mesh.vao_second_pass);
glBindVertexArray(mesh.vao_glow_pass);
glDrawElements(ptype, count, itype, 0);
glBindVertexArray(0);
glBindBuffer(GL_ARRAY_BUFFER, 0);