Browse Source

Merge pull request #50891 from Vitika9/50852

Removed redundant assignment of `blur_pipeline`
Hugo Locurcio 4 years ago
parent
commit
e6a544c169
1 changed files with 2 additions and 1 deletions
  1. 2 1
      servers/rendering/renderer_rd/effects_rd.cpp

+ 2 - 1
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++) {