Eevee: Lookdev: Fix memleak
This commit is contained in:
parent
defbe14077
commit
ec64cad5a8
|
@ -86,6 +86,9 @@ void EEVEE_lookdev_cache_init(
|
|||
|
||||
stl->lookdev_lightcache = EEVEE_lightcache_create(1, 1, cube_res, vis_res, (int[3]){grid_res, grid_res, 1});
|
||||
|
||||
/* XXX: Fix memleak. TODO find out why. */
|
||||
MEM_SAFE_FREE(stl->lookdev_cube_mips);
|
||||
|
||||
/* We do this to use a special light cache for lookdev.
|
||||
* This lightcache needs to be per viewport. But we need to
|
||||
* have correct freeing when the viewport is closed. So we
|
||||
|
|
Loading…
Reference in New Issue