summaryrefslogtreecommitdiff
path: root/test/sprite
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-05-15 14:18:01 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-05-30 11:34:13 -0700
commit6be6263ebf32c45dcbbc2dbe2937422553bc897a (patch)
treef12021eb71905a0734378b42b03aeba94e287040 /test/sprite
parentfb3cef632d7732fab54f93971d3c8ef4d8291bef (diff)
downloadqtlocation-mapboxgl-6be6263ebf32c45dcbbc2dbe2937422553bc897a.tar.gz
[core] Replace inline SpriteAtlas updates with diffing
Diffstat (limited to 'test/sprite')
-rw-r--r--test/sprite/sprite_atlas.test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sprite/sprite_atlas.test.cpp b/test/sprite/sprite_atlas.test.cpp
index 4291fe9902..3226f19c1b 100644
--- a/test/sprite/sprite_atlas.test.cpp
+++ b/test/sprite/sprite_atlas.test.cpp
@@ -98,7 +98,7 @@ TEST(SpriteAtlas, Updates) {
for (size_t i = 0; i < image2.bytes(); i++) {
image2.data.get()[i] = 255;
}
- atlas.addImage(makeMutable<style::Image::Impl>("one", std::move(image2), 1));
+ atlas.updateImage(makeMutable<style::Image::Impl>("one", std::move(image2), 1));
test::checkImage("test/fixtures/sprite_atlas/updates_after", atlas.getAtlasImage());
}