summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorMichael Alexsander <michaelalexsander@protonmail.com>2021-08-23 13:23:45 +0000
committerGitHub <noreply@github.com>2021-08-23 13:23:45 +0000
commit88db5417050ff6ffe97ab2716ab2e53c31b07eb4 (patch)
treeda42c5e7a0292190ed6abbc55d917e8733765de9 /servers
parentae306665d3f1fce62ea51689ea69fa7d24e42fd8 (diff)
parentc86db8b710a575dc2a9b9cd640d06edb09b4bc72 (diff)
Merge pull request #51947 from AnilBK/redundant-assignments
[cppcheck] Remove some redundant assignments.
Diffstat (limited to 'servers')
-rw-r--r--servers/rendering/renderer_rd/effects_rd.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/servers/rendering/renderer_rd/effects_rd.cpp b/servers/rendering/renderer_rd/effects_rd.cpp
index 3683622d3e..80d843227b 100644
--- a/servers/rendering/renderer_rd/effects_rd.cpp
+++ b/servers/rendering/renderer_rd/effects_rd.cpp
@@ -2171,10 +2171,8 @@ EffectsRD::EffectsRD(bool p_prefer_raster_effects) {
for (int pass = 0; pass < 4; pass++) {
for (int subPass = 0; subPass < sub_pass_count; subPass++) {
int a = pass;
- int b = subPass;
-
int spmap[5]{ 0, 1, 4, 3, 2 };
- b = spmap[subPass];
+ int b = spmap[subPass];
float ca, sa;
float angle0 = (float(a) + float(b) / float(sub_pass_count)) * Math_PI * 0.5f;