EEVEE: Fix memory leak when using SSS render pass.
Differential Revision: https://developer.blender.org/D7876
This commit is contained in:
parent
a86b5df005
commit
691a1e3357
Notes:
blender-bot
2023-02-14 05:53:42 +01:00
Referenced by issue #78060, Blender 2.83: Cannot properly transform 3 vertices on curves Referenced by issue #77181, Deleting rigid body deletes object that is not selected but leaves the one that you tried to delete
|
@ -145,7 +145,7 @@ void EEVEE_subsurface_draw_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata)
|
|||
}
|
||||
else {
|
||||
GPU_FRAMEBUFFER_FREE_SAFE(fbl->sss_accum_fb);
|
||||
txl->sss_accum = NULL;
|
||||
DRW_TEXTURE_FREE_SAFE(txl->sss_accum);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
@ -154,11 +154,11 @@ void EEVEE_subsurface_draw_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata)
|
|||
GPU_FRAMEBUFFER_FREE_SAFE(fbl->sss_resolve_fb);
|
||||
GPU_FRAMEBUFFER_FREE_SAFE(fbl->sss_clear_fb);
|
||||
GPU_FRAMEBUFFER_FREE_SAFE(fbl->sss_accum_fb);
|
||||
DRW_TEXTURE_FREE_SAFE(txl->sss_accum);
|
||||
effects->sss_stencil = NULL;
|
||||
effects->sss_blur = NULL;
|
||||
effects->sss_irradiance = NULL;
|
||||
effects->sss_radius = NULL;
|
||||
txl->sss_accum = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue