Use an opaque Id type for image::Handle
Hashing pointers is a terrible idea.
This commit is contained in:
parent
f5bc336d69
commit
b52c7bb610
6 changed files with 59 additions and 36 deletions
|
|
@ -38,8 +38,8 @@ impl Memory {
|
|||
/// Caches image raster data
|
||||
#[derive(Debug, Default)]
|
||||
pub struct Cache {
|
||||
map: FxHashMap<u64, Memory>,
|
||||
hits: FxHashSet<u64>,
|
||||
map: FxHashMap<image::Id, Memory>,
|
||||
hits: FxHashSet<image::Id>,
|
||||
should_trim: bool,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue