diff options
| author | Marcelo Fernandez | 2017-08-17 18:35:55 -0300 |
|---|---|---|
| committer | Marcelo Fernandez | 2017-08-17 19:51:13 -0300 |
| commit | eab850524ead092ed9fe22e57955e59eae373b79 (patch) | |
| tree | 1ec2718c0810d852b51c4d40c135f4dde3841906 /core/math/geometry.cpp | |
| parent | 33c1d25517050470689924c60414feaf295ce05f (diff) | |
| download | godot-eab850524ead092ed9fe22e57955e59eae373b79.tar.gz godot-eab850524ead092ed9fe22e57955e59eae373b79.tar.zst godot-eab850524ead092ed9fe22e57955e59eae373b79.zip | |
Diffstat (limited to 'core/math/geometry.cpp')
| -rw-r--r-- | core/math/geometry.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/geometry.cpp b/core/math/geometry.cpp index 2bea514d3..9a5811244 100644 --- a/core/math/geometry.cpp +++ b/core/math/geometry.cpp @@ -1076,8 +1076,8 @@ void Geometry::make_atlas(const Vector<Size2i> &p_rects, Vector<Point2i> &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; |
