Merge pull request #38676 from qarmin/fix_leak_lightmaps
Fix memory leak with light maps
This commit is contained in:
commit
92022cd47f
1 changed files with 2 additions and 0 deletions
|
@ -3410,6 +3410,8 @@ RasterizerSceneHighEndRD::~RasterizerSceneHighEndRD() {
|
|||
memdelete_arr(scene_state.gi_probes);
|
||||
memdelete_arr(scene_state.directional_lights);
|
||||
memdelete_arr(scene_state.lights);
|
||||
memdelete_arr(scene_state.lightmaps);
|
||||
memdelete_arr(scene_state.lightmap_captures);
|
||||
memdelete_arr(scene_state.reflections);
|
||||
memdelete_arr(scene_state.decals);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue