summaryrefslogtreecommitdiff
path: root/scene/resources/dynamic_font_stb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/resources/dynamic_font_stb.cpp')
-rw-r--r--scene/resources/dynamic_font_stb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/dynamic_font_stb.cpp b/scene/resources/dynamic_font_stb.cpp
index 8efad94b9a..fa8cf4723b 100644
--- a/scene/resources/dynamic_font_stb.cpp
+++ b/scene/resources/dynamic_font_stb.cpp
@@ -289,7 +289,7 @@ void DynamicFontAtSize::_update_char(CharType p_char) {
if (mh > texsize)
texsize = mh; //special case, adapt to it?
- texsize = nearest_power_of_2(texsize);
+ texsize = next_power_of_2(texsize);
texsize = MIN(texsize, 4096);