[Bf-blender-cvs] [a6c59863d38] master: EEVEE: Fix crash when using motion blur without postfx blur
Clément Foucault
noreply at git.blender.org
Wed Jun 24 14:29:27 CEST 2020
Commit: a6c59863d38fa81a58744f7fc5b400254de5f59e
Author: Clément Foucault
Date: Wed Jun 24 14:27:35 2020 +0200
Branches: master
https://developer.blender.org/rBa6c59863d38fa81a58744f7fc5b400254de5f59e
EEVEE: Fix crash when using motion blur without postfx blur
===================================================================
M source/blender/draw/engines/eevee/eevee_engine.c
===================================================================
diff --git a/source/blender/draw/engines/eevee/eevee_engine.c b/source/blender/draw/engines/eevee/eevee_engine.c
index 83d2168af8e..a5df774656a 100644
--- a/source/blender/draw/engines/eevee/eevee_engine.c
+++ b/source/blender/draw/engines/eevee/eevee_engine.c
@@ -470,8 +470,6 @@ static void eevee_render_to_image(void *vedata,
/* The previous step of this iteration N is exactly the next step of iteration N - 1.
* So we just swap the resources to avoid too much re-evaluation. */
EEVEE_motion_blur_swap_data(vedata);
-
- DRW_cache_restart();
}
else {
EEVEE_motion_blur_step_set(ved, MB_PREV);
@@ -536,6 +534,12 @@ static void eevee_render_to_image(void *vedata,
EEVEE_temporal_sampling_create_view(vedata);
EEVEE_render_draw(vedata, engine, render_layer, rect);
+
+ if (i < time_steps_tot - 1) {
+ /* Don't reset after the last loop. Since EEVEE_render_read_result
+ * might need some DRWPasses. */
+ DRW_cache_restart();
+ }
}
}
More information about the Bf-blender-cvs
mailing list