summaryrefslogtreecommitdiff
path: root/src/mbgl/geometry/vao.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/geometry/vao.cpp')
-rw-r--r--src/mbgl/geometry/vao.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mbgl/geometry/vao.cpp b/src/mbgl/geometry/vao.cpp
index 4bfe6b4909..46f10cb48c 100644
--- a/src/mbgl/geometry/vao.cpp
+++ b/src/mbgl/geometry/vao.cpp
@@ -26,10 +26,10 @@ void VertexArrayObject::bindVertexArrayObject(gl::ObjectStore& store) {
return;
}
- if (!vao.created()) {
- vao.create(store);
+ if (!vao) {
+ vao = store.createVAO();
}
- MBGL_CHECK_ERROR(gl::BindVertexArray(vao.getID()));
+ MBGL_CHECK_ERROR(gl::BindVertexArray(*vao));
}
void VertexArrayObject::verifyBinding(Shader &shader, GLuint vertexBuffer, GLuint elementsBuffer,