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:
authorDaria Volvenkova <d.volvenkova@corp.mail.ru>2016-02-05 17:31:48 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:20:42 +0300
commit498a9f03e1c940aa2e361dd48603ad229f76895e (patch)
tree4ee8b968c44b96f1830eabfe5a1670fc253dd8fd /drape/vertex_array_buffer.cpp
parentebc3703d36dcbb5ee6863b6a13e6b70fefcf6c2d (diff)
Overlay rects collecting fixed.
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 b4ea02b6b9..59e171878c 100644
--- a/drape/vertex_array_buffer.cpp
+++ b/drape/vertex_array_buffer.cpp
@@ -16,6 +16,7 @@ VertexArrayBuffer::VertexArrayBuffer(uint32_t indexBufferSize, uint32_t dataBuff
, m_program()
, m_isPreflushed(false)
, m_moveToGpuOnBuild(false)
+ , m_isChanged(false)
{
m_indexBuffer = make_unique_dp<IndexBuffer>(indexBufferSize);
@@ -120,6 +121,8 @@ void VertexArrayBuffer::UploadData(BindingInfo const & bindingInfo, void const *
else
buffer = GetOrCreateDynamicBuffer(bindingInfo);
+ if (count > 0)
+ m_isChanged = true;
buffer->GetBuffer()->UploadData(data, count);
}