diff --git a/drape/index_buffer.cpp b/drape/index_buffer.cpp index 460ce15b86..eb8132c101 100644 --- a/drape/index_buffer.cpp +++ b/drape/index_buffer.cpp @@ -4,3 +4,8 @@ IndexBuffer::IndexBuffer(uint16_t capacity) : GLBuffer(GLBuffer::IndexBuffer, sizeof(uint16_t), capacity) { } + +void IndexBuffer::UploadData(uint16_t * data, uint16_t size) +{ + GLBuffer::UploadData((void *)data, size); +} diff --git a/drape/index_buffer.hpp b/drape/index_buffer.hpp index cee3bdf632..4cb8bc07b5 100644 --- a/drape/index_buffer.hpp +++ b/drape/index_buffer.hpp @@ -6,4 +6,6 @@ class IndexBuffer : public GLBuffer { public: IndexBuffer(uint16_t capacity); + + void UploadData(uint16_t * data, uint16_t size); };