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>2016-10-14 15:57:25 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2016-10-14 15:57:25 +0300
commit2fa3924d5cb4963f1bac57fb0aaa0238bf12c7e7 (patch)
treeaf3ed71c61c7add6b7dc2634dd1b8cf394c8fd19 /drape_frontend
parent3db6928a63942bafd1262bec0751eb72f0de3f2f (diff)
Fixed bookmark displaying
Diffstat (limited to 'drape_frontend')
-rw-r--r--drape_frontend/user_mark_shapes.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/drape_frontend/user_mark_shapes.cpp b/drape_frontend/user_mark_shapes.cpp
index 6700da3e6d..07281bcc3d 100644
--- a/drape_frontend/user_mark_shapes.cpp
+++ b/drape_frontend/user_mark_shapes.cpp
@@ -140,7 +140,8 @@ void CacheUserPoints(UserMarksProvider const * provider, ref_ptr<dp::TextureMana
state.SetColorTexture(region.GetTexture());
state.SetTextureFilter(gl_const::GLNearest);
- dp::Batcher batcher(indicesCount, vertexCount);
+ uint32_t const kMaxSize = 65000;
+ dp::Batcher batcher(min(indicesCount, kMaxSize), min(vertexCount, kMaxSize));
dp::SessionGuard guard(batcher, [&key, &outShapes](dp::GLState const & state,
drape_ptr<dp::RenderBucket> && b)
{