From b0b33b77fae0d3def497fcbab6fa3ac85abaa98b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Wed, 24 Feb 2021 17:09:40 +0100 Subject: Workbench: Fix typo in rB32ca8e58a374 This was creating incorrectly occluded overlays. --- source/blender/draw/engines/workbench/workbench_effect_antialiasing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/draw/engines/workbench/workbench_effect_antialiasing.c b/source/blender/draw/engines/workbench/workbench_effect_antialiasing.c index 84cc4359aa6..07121519ef4 100644 --- a/source/blender/draw/engines/workbench/workbench_effect_antialiasing.c +++ b/source/blender/draw/engines/workbench/workbench_effect_antialiasing.c @@ -73,7 +73,7 @@ static void workbench_taa_jitter_init_order(float (*table)[2], int num) /* Avoid samples outside range (wrap arround). */ table[index][i] = fmodf(table[index][i] + 0.5f, 1.0f); /* Recenter the distribution[-1..1]. */ - table[index][i] += table[index][i] * 2.0f - 1.0f; + table[index][i] = table[index][i] * 2.0f - 1.0f; } } -- cgit v1.2.3