aboutsummaryrefslogtreecommitdiff
path: root/scene/resources/dynamic_font.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-05-17 07:36:47 -0300
committerJuan Linietsky2017-05-17 07:37:45 -0300
commit98a329670227c726a5d7a196e5cba8dbdd54301b (patch)
tree7346f7a3e38eb35b784ac1a68a227d07cc8881b4 /scene/resources/dynamic_font.cpp
parentd801ff2b3db2de105c1b36a74ce116e360143d4e (diff)
downloadgodot-98a329670227c726a5d7a196e5cba8dbdd54301b.tar.gz
godot-98a329670227c726a5d7a196e5cba8dbdd54301b.tar.zst
godot-98a329670227c726a5d7a196e5cba8dbdd54301b.zip
Removal of Image from Variant, converted to a Resource.
Diffstat (limited to 'scene/resources/dynamic_font.cpp')
-rw-r--r--scene/resources/dynamic_font.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/dynamic_font.cpp b/scene/resources/dynamic_font.cpp
index 6a5c4b97f..d2848076a 100644
--- a/scene/resources/dynamic_font.cpp
+++ b/scene/resources/dynamic_font.cpp
@@ -569,7 +569,7 @@ void DynamicFontAtSize::_update_char(CharType p_char) {
//blit to image and texture
{
- Image img(tex.texture_size, tex.texture_size, 0, Image::FORMAT_LA8, tex.imgdata);
+ Ref<Image> img = memnew(Image(tex.texture_size, tex.texture_size, 0, Image::FORMAT_LA8, tex.imgdata));
if (tex.texture.is_null()) {
tex.texture.instance();