Revert "Fix T74782: WorkBench TAA Artifacts During Painting/Drawing"

This reverts commit 58ac113b76.
This commit is contained in:
Jeroen Bakker 2020-03-24 14:02:16 +01:00
parent 88adfc7e54
commit b759857825
Notes: blender-bot 2023-02-13 23:23:59 +01:00
Referenced by issue #75050, GPencil: Strokes get darker while drawing in SOLID mode
Referenced by issue #74782, Drawing in 3D viewport changes object colors
Referenced by issue #74111, Animation Playback Delayed With Time Remapping And AV-Sync
1 changed files with 0 additions and 4 deletions

View File

@ -422,7 +422,6 @@ void workbench_antialiasing_draw_pass(WORKBENCH_Data *vedata)
* If TAA accumulation is finished, we only blit the result.
*/
const bool taa_finished = (wpd->taa_sample >= wpd->taa_sample_len) && wpd->taa_sample_len > 1;
if (wpd->taa_sample == 0) {
/* In playback mode, we are sure the next redraw will not use the same viewmatrix.
* In this case no need to save the depth buffer. */
@ -441,9 +440,6 @@ void workbench_antialiasing_draw_pass(WORKBENCH_Data *vedata)
if (workbench_in_front_history_needed(vedata)) {
GPU_framebuffer_blit(fbl->antialiasing_in_front_fb, 0, dfbl->in_front_fb, 0, GPU_DEPTH_BIT);
}
if (taa_finished) {
return;
}
}
if (!DRW_state_is_image_render() || wpd->taa_sample + 1 == wpd->taa_sample_len) {