summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-02-14 15:07:16 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2016-02-18 13:27:35 +0200
commit47d60992421f8cc6f13142bb7bc53bd7733c7507 (patch)
tree1e0433a28e5938da3dfd480f0256e9c96d04acf4 /src
parent0386dc7a4ea9badffb6298781c8870bfa4fbf49b (diff)
downloadqtlocation-mapboxgl-47d60992421f8cc6f13142bb7bc53bd7733c7507.tar.gz
[gl] Use Buffer::getID() whenever possible
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/geometry/buffer.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/geometry/buffer.hpp b/src/mbgl/geometry/buffer.hpp
index 98ccdb687a..9075a26c77 100644
--- a/src/mbgl/geometry/buffer.hpp
+++ b/src/mbgl/geometry/buffer.hpp
@@ -42,10 +42,10 @@ public:
// Transfers this buffer to the GPU and binds the buffer to the GL context.
void bind() {
if (buffer) {
- MBGL_CHECK_ERROR(glBindBuffer(bufferType, buffer));
+ MBGL_CHECK_ERROR(glBindBuffer(bufferType, getID()));
} else {
MBGL_CHECK_ERROR(glGenBuffers(1, &buffer));
- MBGL_CHECK_ERROR(glBindBuffer(bufferType, buffer));
+ MBGL_CHECK_ERROR(glBindBuffer(bufferType, getID()));
if (array == nullptr) {
Log::Debug(Event::OpenGL, "Buffer doesn't contain elements");
pos = 0;