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

Track LightInstance::shadow_atlases so that it will be freed properly #11959

Merged
merged 1 commit into from
Oct 10, 2017

Conversation

hi-ogawa
Copy link
Contributor

@hi-ogawa hi-ogawa commented Oct 9, 2017

This will fix the issues #11848 (the second issuse (endless error message on scene change) of two issues reported there) and its duplicate #10346.

My observation on this issue is as follows.

LightInstance::shadow_atlases is supposed to be freed from RasterizerSceneGLES3::free(RID p_rid), but currently it turns out nothing is added to the Set data structure light_instance->shadow_atlases. So what I changed in this commit is adding light_instance->shadow_atlases.insert(...) where it seems appropriate, which is after successful RasterizerSceneGLES3::_shadow_atlas_find_shadow.

@groud groud added this to the 3.0 milestone Oct 9, 2017
@akien-mga akien-mga requested a review from reduz October 9, 2017 13:22
@reduz
Copy link
Member

reduz commented Oct 9, 2017

seems fine to me

@27thLiz 27thLiz merged commit dda64a3 into godotengine:master Oct 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants