Browse Source

GL: minor cleanup -- this variable isn't needed anywhere else.

pull/168/head
Vladimír Vondruš 3 years ago
parent
commit
a60668b476
  1. 3
      src/Magnum/GL/Mesh.cpp

3
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);

Loading…
Cancel
Save