Fix T85714 Crash when Viewport Rending an image using EEVEE.

Was caused by non initialized render_timesteps.
This commit is contained in:
Clément Foucault 2021-02-21 01:52:57 +01:00
parent 48167644b7
commit 4dd782a1a3
Notes: blender-bot 2023-02-14 06:00:47 +01:00
Referenced by issue #85714, EXCEPTION_INT_DIVIDE_BY_ZERO when Viewport Rending an image using EEVEE.
1 changed files with 1 additions and 0 deletions

View File

@ -66,6 +66,7 @@ static void eevee_engine_init(void *ved)
stl->g_data->valid_double_buffer = (txl->color_double_buffer != NULL);
stl->g_data->valid_taa_history = (txl->taa_history != NULL);
stl->g_data->queued_shaders_count = 0;
stl->g_data->render_timesteps = 1;
/* Main Buffer */
DRW_texture_ensure_fullscreen_2d(&txl->color, GPU_RGBA16F, DRW_TEX_FILTER | DRW_TEX_MIPMAP);