Skip to content

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Sep 30, 2020

This PR ensures that internal cube render targets are properly removed when Texture.dispose() is called with an equirectangular texture. Otherwise a memory leak could occur.

I've noticed this when trying to integrate PMREM. It's necessary to the same for cubeUV maps, too.

@Mugen87 Mugen87 added this to the r122 milestone Oct 1, 2020
@Mugen87
Copy link
Collaborator Author

Mugen87 commented Oct 5, 2020

@mrdoob Is it okay to merge this PR 😇 ? This one actually blocks my upcoming PMREM integration PR.

@mrdoob mrdoob merged commit b0448e7 into mrdoob:dev Oct 6, 2020
@mrdoob
Copy link
Owner

mrdoob commented Oct 6, 2020

Thanks!

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.

2 participants