Change VAO constructor behavior

This commit is contained in:
Linloir 2022-12-12 23:28:40 +08:00
parent cc39428e22
commit f0022f0837
No known key found for this signature in database
GPG Key ID: 58EEB209A0F2C366

View File

@ -2,7 +2,9 @@
#include "vao.h"
VertexArrayObject::VertexArrayObject() {}
VertexArrayObject::VertexArrayObject() {
OPENGL_EXTRA_FUNCTIONS->glGenVertexArrays(1, &_id);
}
VertexArrayObject::VertexArrayObject(const VertexBufferObject& vbo) :
_vbo(vbo) {