From eab850524ead092ed9fe22e57955e59eae373b79 Mon Sep 17 00:00:00 2001 From: Marcelo Fernandez Date: Thu, 17 Aug 2017 18:35:55 -0300 Subject: Add closest_power_of_2 func and implement mix_rate/latency on OS X --- core/math/geometry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/math/geometry.cpp') diff --git a/core/math/geometry.cpp b/core/math/geometry.cpp index 2bea514d37..9a5811244a 100644 --- a/core/math/geometry.cpp +++ b/core/math/geometry.cpp @@ -1076,8 +1076,8 @@ void Geometry::make_atlas(const Vector &p_rects, Vector &r_resu for (int i = 0; i < results.size(); i++) { - real_t h = nearest_power_of_2(results[i].max_h); - real_t w = nearest_power_of_2(results[i].max_w); + real_t h = next_power_of_2(results[i].max_h); + real_t w = next_power_of_2(results[i].max_w); real_t aspect = h > w ? h / w : w / h; if (aspect < best_aspect) { best = i; -- cgit v1.2.3