mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
[Text Server] Clear textures after "generate mipmaps" property change.
This commit is contained in:
parent
92bcd3c01d
commit
51978dde5a
@ -2035,6 +2035,7 @@ void TextServerAdvanced::font_set_generate_mipmaps(const RID &p_font_rid, bool p
|
||||
for (KeyValue<Vector2i, FontForSizeAdvanced *> &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;
|
||||
|
@ -1129,6 +1129,7 @@ void TextServerFallback::font_set_generate_mipmaps(const RID &p_font_rid, bool p
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user