summaryrefslogtreecommitdiff
path: root/include/mbgl/geometry/buffer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/geometry/buffer.hpp')
-rw-r--r--include/mbgl/geometry/buffer.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/mbgl/geometry/buffer.hpp b/include/mbgl/geometry/buffer.hpp
index 20489cb33c..446177d443 100644
--- a/include/mbgl/geometry/buffer.hpp
+++ b/include/mbgl/geometry/buffer.hpp
@@ -62,6 +62,10 @@ public:
}
}
+ inline GLuint getID() const {
+ return buffer;
+ }
+
protected:
// increase the buffer size by at least /required/ bytes.
inline void *addElement() {
@@ -72,7 +76,7 @@ protected:
while (length < pos + itemSize) length += defaultLength;
array = realloc(array, length);
if (array == nullptr) {
- throw std::runtime_error("Buffer reallocation failed¯");
+ throw std::runtime_error("Buffer reallocation failed");
}
}
pos += itemSize;
@@ -106,7 +110,7 @@ private:
size_t length = 0;
// GL buffer ID
- uint32_t buffer = 0;
+ GLuint buffer = 0;
};
}