|
|
|
@ -998,8 +998,7 @@ void Mesh::bindVAOImplementationVAO(const GLuint id) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Mesh::bindVAO() { |
|
|
|
void Mesh::bindVAO() { |
|
|
|
GLuint& current = Context::current().state().mesh.currentVAO; |
|
|
|
if(Context::current().state().mesh.currentVAO != _id) { |
|
|
|
if(current != _id) { |
|
|
|
|
|
|
|
/* Binding the VAO finally creates it */ |
|
|
|
/* Binding the VAO finally creates it */ |
|
|
|
_flags |= ObjectFlag::Created; |
|
|
|
_flags |= ObjectFlag::Created; |
|
|
|
bindVAOImplementationVAO(_id); |
|
|
|
bindVAOImplementationVAO(_id); |
|
|
|
|