EEVEE: Fix crash when using motion blur without postfx blur
This commit is contained in:
parent
dd328be0f0
commit
a6c59863d3
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue