summaryrefslogtreecommitdiff
path: root/src/mbgl/map/map.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-03-17 12:54:41 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-03-17 12:54:41 +0100
commit36cee94e61289a81f0a2931218295ca12101b116 (patch)
treeb81115238586a172be3acc487822cd27f12efe79 /src/mbgl/map/map.cpp
parent0b1faba36920be2c9343c912b4817448f5659f71 (diff)
parent48c55af5c1d39e9a29cdb2e0c8203e6767f76c57 (diff)
downloadqtlocation-mapboxgl-36cee94e61289a81f0a2931218295ca12101b116.tar.gz
Merge pull request #843 from mapbox/843-fix-sprites
sprite images missing on > 2.0 scale factors
Diffstat (limited to 'src/mbgl/map/map.cpp')
-rw-r--r--src/mbgl/map/map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp
index 29521f9499..d12afc9143 100644
--- a/src/mbgl/map/map.cpp
+++ b/src/mbgl/map/map.cpp
@@ -374,7 +374,7 @@ std::string Map::getStyleJSON() const {
util::ptr<Sprite> Map::getSprite() {
const float pixelRatio = state.getPixelRatio();
const std::string &sprite_url = style->getSpriteURL();
- if (!sprite || sprite->pixelRatio != pixelRatio) {
+ if (!sprite || !sprite->hasPixelRatio(pixelRatio)) {
sprite = Sprite::Create(sprite_url, pixelRatio, *env);
}