From 51978dde5aaa350376c638c708bb25d6abf70874 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Wed, 28 Sep 2022 12:43:34 +0300 Subject: [Text Server] Clear textures after "generate mipmaps" property change. --- modules/text_server_adv/text_server_adv.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/text_server_adv') diff --git a/modules/text_server_adv/text_server_adv.cpp b/modules/text_server_adv/text_server_adv.cpp index 3565254ac7..25c35b1877 100644 --- a/modules/text_server_adv/text_server_adv.cpp +++ b/modules/text_server_adv/text_server_adv.cpp @@ -2035,6 +2035,7 @@ void TextServerAdvanced::font_set_generate_mipmaps(const RID &p_font_rid, bool p for (KeyValue &E : fd->cache) { for (int i = 0; i < E.value->textures.size(); i++) { E.value->textures.write[i].dirty = true; + E.value->textures.write[i].texture = Ref(); } } fd->mipmaps = p_generate_mipmaps; -- cgit v1.2.3