[core] Change ImagePosition from storing non-padded rect to padded rect to mirror the JS implementation
This commit is contained in:
committed by
Alexander Shalamov
parent
c80baa35b3
commit
7d8d13ce04
@@ -99,7 +99,10 @@ void GeometryTileRenderData::upload(gfx::UploadPass& uploadPass) {
|
||||
|
||||
if (atlasTextures->icon && !imagePatches.empty()) {
|
||||
for (const auto& imagePatch : imagePatches) { // patch updated images.
|
||||
uploadPass.updateTextureSub(*atlasTextures->icon, imagePatch.image->image, imagePatch.textureRect.x, imagePatch.textureRect.y);
|
||||
uploadPass.updateTextureSub(*atlasTextures->icon,
|
||||
imagePatch.image->image,
|
||||
imagePatch.paddedRect.x + ImagePosition::padding,
|
||||
imagePatch.paddedRect.y + ImagePosition::padding);
|
||||
}
|
||||
imagePatches.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user