summaryrefslogtreecommitdiffstats
path: root/wgpu/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-06-21 21:47:29 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-06-21 21:47:29 +0200
commitef87ff1e8ab24279a551b3eef6bacd8813712530 (patch)
treedd81a0dbbbecd72fcf53b402d1909bc09e8610f5 /wgpu/src
parent5bc7cbf5bca039ec3a4cbe82b161c087a4b39680 (diff)
downloadiced-ef87ff1e8ab24279a551b3eef6bacd8813712530.tar.gz
iced-ef87ff1e8ab24279a551b3eef6bacd8813712530.tar.bz2
iced-ef87ff1e8ab24279a551b3eef6bacd8813712530.zip
Clear text caches after a font is loaded
Diffstat (limited to '')
-rw-r--r--wgpu/src/text.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/wgpu/src/text.rs b/wgpu/src/text.rs
index 71dcc249..c9188bd1 100644
--- a/wgpu/src/text.rs
+++ b/wgpu/src/text.rs
@@ -54,6 +54,8 @@ impl Pipeline {
let _ = self.font_system.get_mut().db_mut().load_font_source(
glyphon::fontdb::Source::Binary(Arc::new(bytes.into_owned())),
);
+
+ self.cache = RefCell::new(Cache::new());
}
pub fn prepare(