diff options
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_subsurface.c')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_subsurface.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_subsurface.c b/source/blender/draw/engines/eevee/eevee_subsurface.c index 4ca1f0f42a1..3396c82501c 100644 --- a/source/blender/draw/engines/eevee/eevee_subsurface.c +++ b/source/blender/draw/engines/eevee/eevee_subsurface.c @@ -102,7 +102,10 @@ int EEVEE_subsurface_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata) txl->sss_albedo = DRW_texture_create_2D((int)viewport_size[0], (int)viewport_size[1], DRW_TEX_RGB_11_11_10, 0, NULL); } - + else { + /* Cleanup to release memory */ + DRW_TEXTURE_FREE_SAFE(txl->sss_albedo); + } return EFFECT_SSS; } |