diff options
author | Ansis Brammanis <brammanis@gmail.com> | 2015-05-29 14:18:17 -0400 |
---|---|---|
committer | Ansis Brammanis <brammanis@gmail.com> | 2015-06-02 11:33:03 -0400 |
commit | 93fc67ba5519eaefb0d0dbd856ff1f90160c4dea (patch) | |
tree | ece19e0e729a01b6a0bd201c70fc6b9e3e0166f3 /src | |
parent | 2ae2cade4a8a0ed8b77616c73281896feaa39204 (diff) | |
download | qtlocation-mapboxgl-93fc67ba5519eaefb0d0dbd856ff1f90160c4dea.tar.gz |
re-add sprite atlas pollution fix
It got missed in a merge.
https://github.com/mapbox/mapbox-gl-native/commit/03d5e2da80111e225c2478286b60dd4e9b7ec527
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/text/quads.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/text/quads.cpp b/src/mbgl/text/quads.cpp index 9835a488a2..9434396156 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; |