diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2021-10-14 19:16:22 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2021-10-14 19:20:49 +0300 |
commit | 22892955553e86b393dd6e6d74b2b13690c1d36b (patch) | |
tree | 9a284b3df50a3e400066989f4f1fdbeaf606fc47 /source/blender/draw/engines | |
parent | 5e12e62a6a4e333d0d93d50b0dc943e2d19ee3e5 (diff) |
GPUTexture: Fix assert when using stereo viewport with EEVEE
Stereo viewport means the depth buffer is use twice as often as a
framebuffer attachment.
Diffstat (limited to 'source/blender/draw/engines')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_engine.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_engine.c b/source/blender/draw/engines/eevee/eevee_engine.c index f8e1cc9c923..68975cff48c 100644 --- a/source/blender/draw/engines/eevee/eevee_engine.c +++ b/source/blender/draw/engines/eevee/eevee_engine.c @@ -468,6 +468,9 @@ static void eevee_render_to_image(void *vedata, g_data->render_sample_count_per_timestep = EEVEE_temporal_sampling_sample_count_get(scene, ved->stl); + /* Reset in case the same engine is used on multiple views. */ + EEVEE_temporal_sampling_reset(vedata); + /* Compute start time. The motion blur will cover `[time ...time + shuttertime]`. */ float time = initial_frame + initial_subframe; switch (scene->eevee.motion_blur_position) { |