diff --git a/src/Magnum/GL/Mesh.cpp b/src/Magnum/GL/Mesh.cpp index 70f7242bd..f435d0479 100644 --- a/src/Magnum/GL/Mesh.cpp +++ b/src/Magnum/GL/Mesh.cpp @@ -998,8 +998,7 @@ void Mesh::bindVAOImplementationVAO(const GLuint id) { } void Mesh::bindVAO() { - GLuint& current = Context::current().state().mesh.currentVAO; - if(current != _id) { + if(Context::current().state().mesh.currentVAO != _id) { /* Binding the VAO finally creates it */ _flags |= ObjectFlag::Created; bindVAOImplementationVAO(_id);