Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't overwrite symbol bucket's iconsInText flag #10558

Closed

Conversation

alexshalamov
Copy link
Contributor

@alexshalamov alexshalamov commented Apr 12, 2021

If there is at least one symbol that has inlined image(s), layer should be rendered by text&icon program. This change forces symbol bucket's iconsInText flag to be enabled, even if some of the symbol's images are evaluated to an empty resolved image.

Without the fix, inline images could be rendered by a wrong program, thus, an image is sampled from a wrong texture:

expected

After the fix:

expected

Fixes: #10552

Launch Checklist

  • briefly describe the changes in this PR
  • include before/after visuals or gifs if this PR includes visual changes
  • write tests for all new functionality
  • document any changes to public APIs
  • post benchmark scores
  • manually test the debug page
  • tagged @mapbox/map-design-team @mapbox/static-apis if this PR includes style spec API or visual changes
  • tagged @mapbox/gl-native if this PR includes shader changes or needs a native port
  • apply changelog label ('bug', 'feature', 'docs', etc) or use the label 'skip changelog'
  • add an entry inside this element for inclusion in the mapbox-gl-js changelog: <changelog>Do not overwrite symbol bucket's iconsInText flag, so that inline images are rendered by a correct program</changelog>

If there is at least one symbol that has inlined image(s), layer should
be rendered by text&icon program. This change forces symbol bucket's
iconsInText flag to be enabled, even if some of the symbol's images are
evaluated to an empty resolved image.
The test verifies that symbol bucket's iconsInText flag is not
overwritten when there are symbols whose inlined images are
evaluated to an empty image.
@alexshalamov alexshalamov force-pushed the alexshalamov_dont_overwrite_iconsInText_flag branch from 603aa61 to eb024e1 Compare April 12, 2021 09:13
@alexshalamov alexshalamov marked this pull request as draft April 12, 2021 09:22
@ryanhamley ryanhamley closed this Apr 12, 2021
@alexshalamov alexshalamov deleted the alexshalamov_dont_overwrite_iconsInText_flag branch April 12, 2021 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants