summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-07-26 21:43:38 +0200
committerGitHub <noreply@github.com>2021-07-26 21:43:38 +0200
commite6a544c169ae598c1a6f8632f6d8bed1abcdaddc (patch)
tree84c383bf4dd131f12ab983c8d415de8662e3ce01
parentcaf7cbd8715ce549aabf6d9412388558c11fdb51 (diff)
parent1c638669963c32e162e2aaf4b5009665ea28b5e5 (diff)
Merge pull request #50891 from Vitika9/50852
Removed redundant assignment of `blur_pipeline`
-rw-r--r--servers/rendering/renderer_rd/effects_rd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/servers/rendering/renderer_rd/effects_rd.cpp b/servers/rendering/renderer_rd/effects_rd.cpp
index 5dab066262..47bb756d55 100644
--- a/servers/rendering/renderer_rd/effects_rd.cpp
+++ b/servers/rendering/renderer_rd/effects_rd.cpp
@@ -1351,8 +1351,9 @@ void EffectsRD::generate_ssao(RID p_depth_buffer, RID p_normal_buffer, RID p_dep
if (p_settings.quality > RS::ENV_SSAO_QUALITY_VERY_LOW) {
if (pass < blur_passes - 2) {
blur_pipeline = SSAO_BLUR_PASS_WIDE;
+ } else {
+ blur_pipeline = SSAO_BLUR_PASS_SMART;
}
- blur_pipeline = SSAO_BLUR_PASS_SMART;
}
for (int i = 0; i < 4; i++) {