summaryrefslogtreecommitdiff
path: root/test/renderer/pattern_atlas.test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/renderer/pattern_atlas.test.cpp')
-rw-r--r--test/renderer/pattern_atlas.test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/renderer/pattern_atlas.test.cpp b/test/renderer/pattern_atlas.test.cpp
index 350a64adb4..143ee928b5 100644
--- a/test/renderer/pattern_atlas.test.cpp
+++ b/test/renderer/pattern_atlas.test.cpp
@@ -21,8 +21,8 @@ TEST(PatternAtlas, Basic) {
auto images = parseSprite(util::read_file("test/fixtures/annotations/emerald.png"),
util::read_file("test/fixtures/annotations/emerald.json"));
for (auto& image : images) {
- if (image->getID() == "metro") {
- ASSERT_TRUE(patternAtlas.addPattern(*image->baseImpl));
+ if (image->id == "metro") {
+ ASSERT_TRUE(patternAtlas.addPattern(*image));
}
}
auto found = patternAtlas.getPattern("metro");