[core] only compute ClipIDs for Vector/GeoJSON/Annotation tiles

This commit is contained in:
Konstantin Käfer
2016-03-15 17:20:49 +01:00
parent ea32ee742f
commit d63da3f2aa

View File

@@ -147,7 +147,10 @@ void Painter::render(const Style& style, const FrameData& frame_, SpriteAtlas& a
// Update all clipping IDs.
ClipIDGenerator generator;
for (const auto& source : sources) {
generator.update(source->getLoadedTiles());
if (source->type == SourceType::Vector || source->type == SourceType::GeoJSON ||
source->type == SourceType::Annotations) {
generator.update(source->getLoadedTiles());
}
source->updateMatrices(projMatrix, state);
}