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_head
parent7f31763c05aa4a63b63ee6c5ee9bfb48e812da74 (diff)
[drape] gui subsystem. Compass
Diffstat (limited to 'drape_head')
-rw-r--r--drape_head/testing_engine.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/drape_head/testing_engine.cpp b/drape_head/testing_engine.cpp
index 46032037dc..79991168e2 100644
--- a/drape_head/testing_engine.cpp
+++ b/drape_head/testing_engine.cpp
@@ -541,8 +541,9 @@ void TestingEngine::OnFlushData(dp::GLState const & state, dp::TransferPointer<d
dp::MasterPointer<dp::RenderBucket> bucket(vao);
bucket->GetBuffer()->Build(m_programManager->GetProgram(state.GetProgramIndex()));
m_scene[state].push_back(bucket);
- bucket->ForEachOverlay([this](dp::OverlayHandle * handle)
+ for (size_t i = 0; i < bucket->GetOverlayHandlesCount(); ++i)
{
+ dp::RefPointer<dp::OverlayHandle> handle = bucket->GetOverlayHandle(i);
handle->Update(m_modelView);
if (handle->IsValid())
{
@@ -550,7 +551,7 @@ void TestingEngine::OnFlushData(dp::GLState const & state, dp::TransferPointer<d
m_rects.resize(m_rects.size() + 1);
handle->GetPixelShape(m_modelView, m_rects.back());
}
- });
+ };
}
void TestingEngine::ClearScene()