Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

[core] Ensure all image dependencies are met in GeometryTileWorker::onImagesAvailable - #9739

Merged
brunoabinader merged 2 commits into
masterfrom
test-api-recycle-map
Aug 14, 2017
Merged

brunoabinader merged 2 commits into
masterfrom
test-api-recycle-map

Conversation

@brunoabinader

Copy link
Copy Markdown
Contributor

Extract from #9689 - this is the root cause for runtime-styling/image-add-alpha to fail in CI when recycling the map object.

@brunoabinader brunoabinader added bug Core The cross-platform C++ core, aka mbgl labels Aug 9, 2017
@brunoabinader brunoabinader added the ⚠️ DO NOT MERGE Work in progress, proof of concept, or on hold label Aug 9, 2017
@brunoabinader brunoabinader changed the title [test] Added API.RecycleMap test [core] Ensure all image dependencies are met in GeometryTileWorker::onImagesAvailable Aug 13, 2017
@brunoabinader brunoabinader added tests ✓ ready for review and removed ⚠️ DO NOT MERGE Work in progress, proof of concept, or on hold labels Aug 13, 2017
if (it != pendingImageDependencies.end()) {
pendingImageDependencies.erase(it);
}
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@brunoabinader
brunoabinader merged commit 5d62028 into master Aug 14, 2017
@brunoabinader
brunoabinader deleted the test-api-recycle-map branch August 14, 2017 15:23
@jfirebaugh

jfirebaugh commented Aug 14, 2017 •

Copy link
Copy Markdown
Contributor

I'm not sure this is the correct fix. The intent behind the prior logic was that once the style's sprite has been loaded, missing images should no longer block symbol layers from being placed and rendered.

If I understand this change correctly, if any symbol layer references an icon that is missing from the sprite, then all symbol layers won't be rendered. Is that correct?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Core The cross-platform C++ core, aka mbgl tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants