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 the destroy callback in Bloom #5077

Merged
merged 2 commits into from
Feb 21, 2023
Merged

Conversation

querielo
Copy link
Contributor

@querielo querielo commented Feb 20, 2023

_destroy is defined in this.effect.

I confirm I have read the contributing guidelines and signed the Contributor License Agreement.

@willeastcott
Copy link
Contributor

Thanks for the fix. Is now a good time to do an audit to check if all post effects are correctly freeing any allocated resources?

@willeastcott willeastcott added bug area: graphics Graphics related issue labels Feb 20, 2023
@querielo
Copy link
Contributor Author

querielo commented Feb 20, 2023

Thanks for the fix. Is now a good time to do an audit to check if all post effects are correctly freeing any allocated resources?

It looks like render targets are being removed in other post effects while destroying

@querielo
Copy link
Contributor Author

But shaders (WebGL programs) are not removed.
Example: https://github.com/playcanvas/engine/blob/main/scripts/posteffects/posteffect-fxaa.js#L73

Copy link
Contributor

@willeastcott willeastcott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving, but I'll leave it to @mvaligursky to merge. 😄 Thanks!

@mvaligursky mvaligursky merged commit 0cc983b into playcanvas:main Feb 21, 2023
mvaligursky pushed a commit that referenced this pull request Feb 23, 2023
* Fix the destroy callback in Bloom

* Review comment: #5077 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants