Code simplifications found by cppcheck
They are based on: - Boolean arithmetic simplifications - setting variables that are not accessed - constant variables
This commit is contained in:
parent
dce1602eda
commit
28af870750
15 changed files with 11 additions and 41 deletions
|
|
@ -1332,7 +1332,6 @@ void SSEffects::generate_ssao(SSAORenderBuffers &p_ssao_buffers, RID p_normal_bu
|
|||
for (int pass = 0; pass < blur_passes; pass++) {
|
||||
int blur_pipeline = SSAO_BLUR_PASS;
|
||||
if (ssao_quality > RS::ENV_SSAO_QUALITY_VERY_LOW) {
|
||||
blur_pipeline = SSAO_BLUR_PASS_SMART;
|
||||
if (pass < blur_passes - 2) {
|
||||
blur_pipeline = SSAO_BLUR_PASS_WIDE;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue