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

fix(core): premature release of texture prop #7860

Merged
merged 2 commits into from
Apr 27, 2023
Merged

Conversation

Pessimistress
Copy link
Collaborator

For #7854

When FillStyleExtension is used with a composite layer, the fillPatternAtlas prop is loaded by the top-level layer (GeoJsonLayer in this case) and passed down to sublayers (SolidPolygonLayer). However, when a sublayer is finalized due to data change, it is able to delete the external texture, despite that the texture is still in use. This PR ensures that textures can only be released by the layer that created them.

Change List

  • Use layer id to track texture ownership
  • Test

@coveralls
Copy link

Coverage Status

Coverage: 89.813% (+0.002%) from 89.812% when pulling 8aa03fa on x/texture-release into 2684b4e on master.

@Pessimistress Pessimistress merged commit a58191a into master Apr 27, 2023
@Pessimistress Pessimistress deleted the x/texture-release branch April 27, 2023 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants