Open felixpalmer opened 1 month ago
A possible reason is that textures are now immutable so resizing (via any method such as framebuffer.resize() etc) creates new textures. This means that if we hold on to textures separately we may end up referencing deleted textures.
Description
IconLayer
generatesWebGL: INVALID_OPERATION
errors when a layer is repeatedly added & removed. The use case is adding a custom layer on hover.Visually the icon texture data is corrupted across all layers (not just the one rendering the hover), suggesting that we are holding onto memory we shouldn't be.
https://github.com/user-attachments/assets/84eada31-a99c-4eb5-9d2d-16f3eb8c224a
The following errors are repeatedly logged:
Flavors
Expected Behavior
No response
Steps to Reproduce
Modify the
examples/website/icon/app.tsx
:Environment
Logs
No response