mark all sprites as uninitialized on pixelRatio changes

fixes #226
This commit is contained in:
Konstantin Käfer
2014-05-30 14:28:42 +02:00
parent 3a8b88dbbd
commit 3e7f801de1

View File

@@ -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;