summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/image_atlas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/renderer/image_atlas.cpp')
-rw-r--r--src/mbgl/renderer/image_atlas.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/renderer/image_atlas.cpp b/src/mbgl/renderer/image_atlas.cpp
index e38bd923ee..71a0010972 100644
--- a/src/mbgl/renderer/image_atlas.cpp
+++ b/src/mbgl/renderer/image_atlas.cpp
@@ -9,7 +9,7 @@ static constexpr uint32_t padding = 1;
ImagePosition::ImagePosition(const mapbox::Bin& bin, const style::Image::Impl& image, uint32_t version_)
: pixelRatio(image.pixelRatio),
- textureRect(bin.x + padding, bin.y + padding, bin.w - padding * 2, bin.h - padding * 2),
+ paddedRect(bin.x, bin.y, bin.w, bin.h),
version(version_),
stretchX(image.stretchX),
stretchY(image.stretchY),
@@ -65,7 +65,7 @@ void populateImagePatches(
auto updatedImage = imageManager.getSharedImage(name);
if (updatedImage == nullptr) continue;
- patches.emplace_back(*updatedImage, position.textureRect);
+ patches.emplace_back(*updatedImage, position.paddedRect);
position.version = version;
}
}