fix: no redundant load
This commit is contained in:
parent
658025314c
commit
1f52b5211c
1 changed files with 4 additions and 2 deletions
|
|
@ -220,8 +220,10 @@ impl FontSystem {
|
||||||
.filter(|id| {
|
.filter(|id| {
|
||||||
let contains = self.font_cache.contains_key(id);
|
let contains = self.font_cache.contains_key(id);
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
unsafe {
|
if !contains {
|
||||||
self.db.make_shared_face_data(*id);
|
unsafe {
|
||||||
|
self.db.make_shared_face_data(*id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
!contains
|
!contains
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue