Merge pull request #4503 from rokuz/fixed-bm-disp

Fixed bookmark displaying
This commit is contained in:
Daria Volvenkova 2016-10-14 16:01:50 +03:00 committed by GitHub
commit 88d7e4d421

View file

@ -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)
{