summaryrefslogtreecommitdiff
path: root/modules/text_server_adv/dynamic_font_adv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/text_server_adv/dynamic_font_adv.cpp')
-rw-r--r--modules/text_server_adv/dynamic_font_adv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/text_server_adv/dynamic_font_adv.cpp b/modules/text_server_adv/dynamic_font_adv.cpp
index c29aac05bb..62eedebb59 100644
--- a/modules/text_server_adv/dynamic_font_adv.cpp
+++ b/modules/text_server_adv/dynamic_font_adv.cpp
@@ -420,7 +420,7 @@ DynamicFontDataAdvanced::Character DynamicFontDataAdvanced::bitmap_to_character(
Ref<Image> img = memnew(Image(tex.texture_size, tex.texture_size, 0, require_format, tex.imgdata));
if (tex.texture.is_null()) {
- tex.texture.instance();
+ tex.texture.instantiate();
tex.texture->create_from_image(img);
} else {
tex.texture->update(img); //update