Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2017-05-24 11:08:05 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2017-05-24 12:04:20 +0300
commitd72ab7c8cd8be0eb5a622d9d33ae943b391d5707 (patch)
treee5002b9cb38309d669448e2d4d89e3e79fbb0d37 /drape/vertex_array_buffer.cpp
parentce6c36b209b2d2f04be681d8150a408f9039d45b (diff)
Fixed fps fall on Android in ES3 mode
Diffstat (limited to 'drape/vertex_array_buffer.cpp')
-rw-r--r--drape/vertex_array_buffer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/drape/vertex_array_buffer.cpp b/drape/vertex_array_buffer.cpp
index 9da306ec15..aeea0b67f8 100644
--- a/drape/vertex_array_buffer.cpp
+++ b/drape/vertex_array_buffer.cpp
@@ -245,6 +245,7 @@ uint32_t VertexArrayBuffer::GetDynamicBufferOffset(BindingInfo const & bindingIn
}
uint32_t VertexArrayBuffer::GetIndexCount() const { return GetIndexBuffer()->GetCurrentSize(); }
+
void VertexArrayBuffer::UploadIndexes(void const * data, uint32_t count)
{
ASSERT_LESS_OR_EQUAL(count, GetIndexBuffer()->GetAvailableSize(), ());
@@ -317,7 +318,9 @@ void VertexArrayBuffer::Unbind() const
}
void VertexArrayBuffer::BindStaticBuffers() const { BindBuffers(m_staticBuffers); }
+
void VertexArrayBuffer::BindDynamicBuffers() const { BindBuffers(m_dynamicBuffers); }
+
void VertexArrayBuffer::BindBuffers(BuffersMap const & buffers) const
{
for (auto it = buffers.begin(); it != buffers.end(); ++it)