Merge pull request #66532 from bruvzg/mipmap_change
[Text Server] Clear textures after "generate mipmaps" property change.
This commit is contained in:
commit
24b36354ff
2 changed files with 2 additions and 0 deletions
|
@ -2049,6 +2049,7 @@ void TextServerAdvanced::_font_set_generate_mipmaps(const RID &p_font_rid, bool
|
|||
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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue