From bbb1663ee540c42ff7e7713ba59eaa392f3fd5be Mon Sep 17 00:00:00 2001 From: ExMix Date: Tue, 24 Sep 2013 19:01:13 +0300 Subject: [PATCH] [drape] index buffer always use uint16_t for store index value and for upload need to use conform signature --- drape/index_buffer.cpp | 5 +++++ drape/index_buffer.hpp | 2 ++ 2 files changed, 7 insertions(+) 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); };