diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-09-29 11:45:28 +0200 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-09-29 10:17:47 -0700 |
commit | d1a84d9b51a7145f9f7665805cf71050aac7bc63 (patch) | |
tree | 057b048f24e022a2c391a1ecf736c4c9a3f10943 /src/mbgl/geometry/vao.hpp | |
parent | 2b05776f978c7759824bce1c4fc89d67cc00d332 (diff) | |
download | qtlocation-mapboxgl-d1a84d9b51a7145f9f7665805cf71050aac7bc63.tar.gz |
[core] rename VAO => VertexArray, FBO => Framebuffer
Diffstat (limited to 'src/mbgl/geometry/vao.hpp')
-rw-r--r-- | src/mbgl/geometry/vao.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mbgl/geometry/vao.hpp b/src/mbgl/geometry/vao.hpp index 2cb81481f2..a9e69c938f 100644 --- a/src/mbgl/geometry/vao.hpp +++ b/src/mbgl/geometry/vao.hpp @@ -24,7 +24,7 @@ public: if (bound_shader == 0) { vertexBuffer.bind(context); shader.bind(offset); - if (vao) { + if (vertexArray) { storeBinding(shader, vertexBuffer.getID(), 0, offset); } } else { @@ -43,7 +43,7 @@ public: vertexBuffer.bind(context); elementsBuffer.bind(context); shader.bind(offset); - if (vao) { + if (vertexArray) { storeBinding(shader, vertexBuffer.getID(), elementsBuffer.getID(), offset); } } else { @@ -52,7 +52,7 @@ public: } GLuint getID() const { - return *vao; + return *vertexArray; } private: @@ -60,7 +60,7 @@ private: void storeBinding(Shader &shader, GLuint vertexBuffer, GLuint elementsBuffer, GLbyte *offset); void verifyBinding(Shader &shader, GLuint vertexBuffer, GLuint elementsBuffer, GLbyte *offset); - mbgl::optional<gl::UniqueVAO> vao; + mbgl::optional<gl::UniqueVertexArray> vertexArray; // For debug reasons, we're storing the bind information so that we can // detect errors and report |