Don't spend memory on overzooming when we aren't going to use it

This commit is contained in:
Erica Fischer
2023-08-23 12:18:33 -07:00
parent 49310b6ce4
commit 54503580e8
+3 -1
View File
@@ -495,7 +495,9 @@ struct reader {
tiles_at_maxzoom_so_far.clear(); tiles_at_maxzoom_so_far.clear();
} }
tiles_at_maxzoom_so_far.push_back(std::pair<unsigned, unsigned>(x, y)); if (want_overzoom) {
tiles_at_maxzoom_so_far.push_back(std::pair<unsigned, unsigned>(x, y));
}
} }
} }