summaryrefslogtreecommitdiff
path: root/src/map/map.cpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2014-10-22 14:25:10 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2014-10-29 09:58:03 -0400
commit4f7bc80664c29d7f15598392946ff0ac73dd520c (patch)
tree442be95bf64172dbb22d4b5fdad0299aa699cbdb /src/map/map.cpp
parent14829db508035426ef8a38d1f8dc83a8ccf60b0f (diff)
downloadqtlocation-mapboxgl-4f7bc80664c29d7f15598392946ff0ac73dd520c.tar.gz
Hold internal reference to Sprite in SpriteAtlas
Diffstat (limited to 'src/map/map.cpp')
-rw-r--r--src/map/map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/map.cpp b/src/map/map.cpp
index 2f0dceb427..82108d0006 100644
--- a/src/map/map.cpp
+++ b/src/map/map.cpp
@@ -646,7 +646,7 @@ void Map::prepare() {
// Allow the sprite atlas to potentially pull new sprite images if needed.
spriteAtlas->resize(state.getPixelRatio());
- spriteAtlas->update(*getSprite());
+ spriteAtlas->setSprite(getSprite());
updateTiles();
}