diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-03-05 02:49:24 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-03-06 18:44:04 +0300 |
commit | 162ef15da6da4027ce59ef0b93d3234524d1cdf8 (patch) | |
tree | 9bb4a4793fffc174841cd78e76354d431311940d /source | |
parent | b7414d357af3fe793c1af374ed27e39db0834ca1 (diff) |
Eevee: Fix bad framebuffer when changing probe resolution.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_lightprobes.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_lightprobes.c b/source/blender/draw/engines/eevee/eevee_lightprobes.c index 9e5aa56b220..dd4dc590b10 100644 --- a/source/blender/draw/engines/eevee/eevee_lightprobes.c +++ b/source/blender/draw/engines/eevee/eevee_lightprobes.c @@ -321,8 +321,10 @@ void EEVEE_lightprobes_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *UNUSED(veda sldata->probes->target_size = prop_cubemap_res >> 1; + DRW_TEXTURE_FREE_SAFE(sldata->probe_depth_rt); DRW_TEXTURE_FREE_SAFE(sldata->probe_rt); DRW_TEXTURE_FREE_SAFE(sldata->probe_pool); + DRW_FRAMEBUFFER_FREE_SAFE(sldata->probe_fb); } int visibility_res = BKE_collection_engine_property_value_get_int(props, "gi_visibility_resolution"); |