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

android: prevent leak of cubemap for IndirectLight/Skybox #8470

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

poweifeng
Copy link
Contributor

We break existing API by returning both the IndirectLight and the texture. Same thing with Skybox.

Fix one bug where the float array in getSphericalHarmonics wasn't getting written out.

Fixes #6412

@poweifeng poweifeng added the internal Issue/PR does not affect clients label Feb 24, 2025
We break existing  API by returning both the IndirectLight and the
texture. Same thing with Skybox.

Fix one bug where the float array in getSphericalHarmonics wasn't
getting written out.

Fixes #6412
Copy link
Collaborator

@pixelflinger pixelflinger left a comment

Choose a reason for hiding this comment

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

Was this solely a bug on the kotlin side? Or is there a more fundamental bug in the java implementation of IndirectLight?

@poweifeng
Copy link
Contributor Author

Was this solely a bug on the kotlin side? Or is there a more fundamental bug in the java implementation of IndirectLight?

These are two utils functions (in Ktx1Loader) that exist only for Java/kotlin. It doesn't affect the java impl of IndirectLight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Issue/PR does not affect clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Memory leaked with Skybox and IndirectLight on Android
3 participants