summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/pattern_atlas.cpp
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-06-04 14:57:59 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-06-04 15:28:00 +0300
commit76d8fd0a798ac49445b0211f4c3b04909a61e344 (patch)
tree3b44eafe54ec467c8392e3413aafd561f18fe20d /src/mbgl/renderer/pattern_atlas.cpp
parenta9abc43510b4206ffa9c54c3d4c9aa2ed0d1cfce (diff)
downloadqtlocation-mapboxgl-76d8fd0a798ac49445b0211f4c3b04909a61e344.tar.gz
[core] Update comments for pattern atlas
Diffstat (limited to 'src/mbgl/renderer/pattern_atlas.cpp')
-rw-r--r--src/mbgl/renderer/pattern_atlas.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mbgl/renderer/pattern_atlas.cpp b/src/mbgl/renderer/pattern_atlas.cpp
index 320412685b..81223b5ce0 100644
--- a/src/mbgl/renderer/pattern_atlas.cpp
+++ b/src/mbgl/renderer/pattern_atlas.cpp
@@ -6,10 +6,9 @@ namespace mbgl {
namespace {
-// When copied into the atlas texture, image data is padded by one pixel on each side. Icon
-// images are padded with fully transparent pixels, while pattern images are padded with a
-// copy of the image data wrapped from the opposite side. In both cases, this ensures the
-// correct behavior of GL_LINEAR texture sampling mode.
+// When copied into the atlas texture, image data is padded by one pixel on each side.
+// Pattern images are padded with a copy of the image data wrapped from the opposite side.
+// This ensures the correct behavior of GL_LINEAR texture sampling mode.
const uint16_t padding = 1;
mapbox::ShelfPack::ShelfPackOptions shelfPackOptions() {