mirror of
https://github.com/Linloir/SceneEditor.git
synced 2025-12-17 15:38:11 +08:00
Change VAO constructor behavior
This commit is contained in:
parent
cc39428e22
commit
f0022f0837
@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
#include "vao.h"
|
#include "vao.h"
|
||||||
|
|
||||||
VertexArrayObject::VertexArrayObject() {}
|
VertexArrayObject::VertexArrayObject() {
|
||||||
|
OPENGL_EXTRA_FUNCTIONS->glGenVertexArrays(1, &_id);
|
||||||
|
}
|
||||||
|
|
||||||
VertexArrayObject::VertexArrayObject(const VertexBufferObject& vbo) :
|
VertexArrayObject::VertexArrayObject(const VertexBufferObject& vbo) :
|
||||||
_vbo(vbo) {
|
_vbo(vbo) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user