diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-05-30 14:28:42 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-05-30 14:28:42 +0200 |
commit | 3e7f801de11ef6a73578f58cbd89b61a6448924b (patch) | |
tree | 1a6ea9255249b59d2d45b3e4aafc06260a1b71fe /src | |
parent | 3a8b88dbbde2b1361b19dc5e4cc1c3edb592eea1 (diff) | |
download | qtlocation-mapboxgl-3e7f801de11ef6a73578f58cbd89b61a6448924b.tar.gz |
mark all sprites as uninitialized on pixelRatio changes
fixes #226
Diffstat (limited to 'src')
-rw-r--r-- | src/geometry/sprite_atlas.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/geometry/sprite_atlas.cpp b/src/geometry/sprite_atlas.cpp index 1a077506ab..bb514502bb 100644 --- a/src/geometry/sprite_atlas.cpp +++ b/src/geometry/sprite_atlas.cpp @@ -55,6 +55,11 @@ bool SpriteAtlas::resize(const float newRatio) { free(old_data); dirty = true; + + // Mark all sprite images as in need of update + for (const auto &pair : images) { + uninitialized.emplace(pair.first); + } } return dirty; |