diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-08-06 14:37:41 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-08-06 14:37:41 +0300 |
commit | 574bd866c867ba0e63365c2fa59e4490295990bc (patch) | |
tree | 8db5bb17737f941c8dfdbc1d39d58ccbdc7f317b /source/blender/draw/engines | |
parent | b313710c10f9d1e8425daf2ff86b9c998ed1d11b (diff) |
Fix T78520 EEVEE: No viewport update when changing material nodetree
This was comming from rBd82c3d86155ea3c7831c7b5ef5d07bc8e2d99394
Diffstat (limited to 'source/blender/draw/engines')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_temporal_sampling.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_temporal_sampling.c b/source/blender/draw/engines/eevee/eevee_temporal_sampling.c index c1502afe519..e184a80d2f6 100644 --- a/source/blender/draw/engines/eevee/eevee_temporal_sampling.c +++ b/source/blender/draw/engines/eevee/eevee_temporal_sampling.c @@ -269,8 +269,9 @@ int EEVEE_temporal_sampling_init(EEVEE_ViewLayerData *UNUSED(sldata), EEVEE_Data } } else { - /* Fix Texture painting (see T79370). */ - if (DRW_state_is_navigating()) { + const bool all_shaders_compiled = stl->g_data->queued_shaders_count_prev == 0; + /* Fix Texture painting (see T79370) and shader compilation (see T78520). */ + if (DRW_state_is_navigating() || !all_shaders_compiled) { effects->taa_current_sample = 1; } else { |