Eevee: Fix sequencer rendering.

Sequencer rendering can use multisample render targets. Be sure to sync
thoses after rendering.

Also disable the sample loop when not needed.

Do note that currently the color correction is broken with the sequencer.
This commit is contained in:
Clément Foucault 2018-03-14 03:27:22 +01:00
parent f5d529b8e2
commit 7314904a77
Notes: blender-bot 2023-10-13 01:54:23 +02:00
Referenced by issue #54334, Blender 2.8 ignores object animation data
Referenced by issue #54313, Objects disappear from viewport after F12 render.
1 changed files with 7 additions and 2 deletions

View File

@ -179,9 +179,10 @@ static void eevee_draw_background(void *vedata)
/* Sort transparents before the loop. */
DRW_pass_sort_shgroup_z(psl->transparent_pass);
/* Number of iteration: needed for all temporal effect (SSR, TAA)
/* Number of iteration: needed for all temporal effect (SSR, volumetrics)
* when using opengl render. */
int loop_ct = DRW_state_is_image_render() ? 4 : 1;
int loop_ct = (DRW_state_is_image_render() &&
(stl->effects->enabled_effects & (EFFECT_VOLUMETRIC | EFFECT_SSR)) != 0) ? 4 : 1;
while (loop_ct--) {
unsigned int primes[3] = {2, 3, 7};
@ -333,6 +334,10 @@ static void eevee_draw_background(void *vedata)
EEVEE_volumes_free_smoke_textures();
if (DRW_state_is_image_render()) {
MULTISAMPLE_SYNC_ENABLE(dfbl);
}
stl->g_data->view_updated = false;
}