Merge pull request #89889 from BoThompson/compute_image_metrics-fix

Remove a redundant `MAX` comparison within a loop in `compute_image_metrics`.
This commit is contained in:
Rémi Verschelde 2024-04-04 14:35:17 +02:00
commit 3fdc169751
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -4114,7 +4114,7 @@ Dictionary Image::compute_image_metrics(const Ref<Image> p_compared_image, bool
continue; continue;
} }
image_metric_max = MAX(image_metric_max, i); image_metric_max = i;
double x = i * hist[i]; double x = i * hist[i];