diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-03-17 12:54:41 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-03-17 12:54:41 +0100 |
commit | 36cee94e61289a81f0a2931218295ca12101b116 (patch) | |
tree | b81115238586a172be3acc487822cd27f12efe79 /src/mbgl/map/map.cpp | |
parent | 0b1faba36920be2c9343c912b4817448f5659f71 (diff) | |
parent | 48c55af5c1d39e9a29cdb2e0c8203e6767f76c57 (diff) | |
download | qtlocation-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.cpp | 2 |
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); } |