From 93fc67ba5519eaefb0d0dbd856ff1f90160c4dea Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Fri, 29 May 2015 14:18:17 -0400 Subject: [PATCH] re-add sprite atlas pollution fix It got missed in a merge. https://github.com/mapbox/mapbox-gl-native/commit/03d5e2da80111e225c2478286b60dd4e9b7ec527 --- src/mbgl/text/quads.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mbgl/text/quads.cpp b/src/mbgl/text/quads.cpp index 9835a488a..943439615 100644 --- a/src/mbgl/text/quads.cpp +++ b/src/mbgl/text/quads.cpp @@ -157,7 +157,8 @@ SymbolQuads getGlyphQuads(Anchor &anchor, const Shaping &shapedText, } // The rects have an addditional buffer that is not included in their size; - const float rectBuffer = 3.0f; + const float glyphPadding = 1.0f; + const float rectBuffer = 3.0f + glyphPadding; const float x1 = positionedGlyph.x + glyph.metrics.left - rectBuffer; const float y1 = positionedGlyph.y - glyph.metrics.top - rectBuffer;