summaryrefslogtreecommitdiff
path: root/modules/text_server_fb
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-28 17:13:57 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-28 17:13:57 +0200
commit24b36354ffc3aaef93c5add7caa9702160c1c21a (patch)
tree5323f2d2492ba91ffbd77377ab0b235c4c320033 /modules/text_server_fb
parent14e1f36e614686f3fea0c74fac3624d1027dd5cc (diff)
parent51978dde5aaa350376c638c708bb25d6abf70874 (diff)
Merge pull request #66532 from bruvzg/mipmap_change
[Text Server] Clear textures after "generate mipmaps" property change.
Diffstat (limited to 'modules/text_server_fb')
-rw-r--r--modules/text_server_fb/text_server_fb.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/text_server_fb/text_server_fb.cpp b/modules/text_server_fb/text_server_fb.cpp
index e7cb1b28a8..518c877baa 100644
--- a/modules/text_server_fb/text_server_fb.cpp
+++ b/modules/text_server_fb/text_server_fb.cpp
@@ -1143,6 +1143,7 @@ void TextServerFallback::_font_set_generate_mipmaps(const RID &p_font_rid, bool
for (KeyValue<Vector2i, FontForSizeFallback *> &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<ImageTexture>();
}
}
fd->mipmaps = p_generate_mipmaps;