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:
authorExMix <rahuba.youri@mapswithme.com>2015-02-25 13:18:40 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2015-11-30 16:04:05 +0300
commit4cfb58cdbe822a8609eddd9de4a6fc824f836693 (patch)
treeeb9eecb3342f3388658486f015e18fc73dff3044 /drape/batcher.cpp
parent7f31763c05aa4a63b63ee6c5ee9bfb48e812da74 (diff)
[drape] gui subsystem. Compass
Diffstat (limited to 'drape/batcher.cpp')
-rw-r--r--drape/batcher.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/drape/batcher.cpp b/drape/batcher.cpp
index cbb7159a89..a6ea7d49b9 100644
--- a/drape/batcher.cpp
+++ b/drape/batcher.cpp
@@ -43,7 +43,7 @@ public:
uint16_t * GetIndexStorage(uint16_t size, uint16_t & startIndex)
{
startIndex = m_buffer->GetStartIndexValue();
- if (m_overlay.IsNull())
+ if (m_overlay.IsNull() || !m_overlay->RequiresIndexes())
{
m_indexStorage.resize(size);
return &m_indexStorage[0];
@@ -54,7 +54,7 @@ public:
void SubmitIndexes()
{
- if (m_overlay.IsNull())
+ if (m_overlay.IsNull() || !m_overlay->RequiresIndexes())
m_buffer->UploadIndexes(&m_indexStorage[0], m_indexStorage.size());
}