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

Destroying a Texture does not remove the key from the TextureManager #4461

Closed
BigZaphod opened this issue Apr 6, 2019 · 1 comment
Closed

Comments

@BigZaphod
Copy link
Contributor

Phaser: 3.16.2

This might be intentional, but Texture's destroy() function does not actually remove the texture's key from the TextureManager. I see where this might cause some kind of infinite loop (if not properly handled) if the texture is removed by name using TextureManager's remove() function, but it seems like it should work both ways here. I was bitten by this, anyway!

@photonstorm
Copy link
Collaborator

Thank you for submitting this feature request. We have implemented this and the feature has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

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

No branches or pull requests

2 participants