Share identical uniform buffers across drawables for background, line. (#1346)

This commit is contained in:
Tim Sylvester
2023-07-12 09:58:01 -07:00
committed by Bart Louwers
parent 3056f28756
commit 4eef2e3529
18 changed files with 158 additions and 111 deletions

View File

@@ -378,7 +378,8 @@ void GeometryTileWorker::parse() {
continue;
}
std::vector<std::string> layerIDs(group.size());
std::vector<std::string> layerIDs;
layerIDs.reserve(group.size());
for (const auto& layer : group) {
layerIDs.push_back(layer->baseImpl->id);
}