diff options
author | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2016-10-14 15:57:25 +0300 |
---|---|---|
committer | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2016-10-14 15:57:25 +0300 |
commit | 2fa3924d5cb4963f1bac57fb0aaa0238bf12c7e7 (patch) | |
tree | af3ed71c61c7add6b7dc2634dd1b8cf394c8fd19 /drape_frontend | |
parent | 3db6928a63942bafd1262bec0751eb72f0de3f2f (diff) |
Fixed bookmark displaying
Diffstat (limited to 'drape_frontend')
-rw-r--r-- | drape_frontend/user_mark_shapes.cpp | 3 |
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) { |