From dab57e69823bff96d79e70fc4040db1670b23ba3 Mon Sep 17 00:00:00 2001 From: vangel76 Date: Mon, 9 Nov 2026 01:34:25 +0100 Subject: [PATCH] #3334: the matte cache's memory candidates after the merge (Candidate::new) --- crates/gpu/src/fx_depth/matte_cache.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/gpu/src/fx_depth/matte_cache.rs b/crates/gpu/src/fx_depth/matte_cache.rs index 093b54d1b..a81f10553 100644 --- a/crates/gpu/src/fx_depth/matte_cache.rs +++ b/crates/gpu/src/fx_depth/matte_cache.rs @@ -134,11 +134,7 @@ impl MemoryHolder for Holder { let c = lock(); let e = c.entries.get(oldest(&c)?)?; // (a plane of channels that are gone is worth nothing) - Some(if e.gone() { - Candidate { used: 0, bytes: e.plane.bytes(), cost_us: 0 } - } else { - Candidate { used: e.used, bytes: e.plane.bytes(), cost_us: e.cost_us } - }) + Some(if e.gone() { Candidate::new(0, e.plane.bytes(), 0) } else { Candidate::new(e.used, e.plane.bytes(), e.cost_us) }) } fn drop_oldest(&self) -> usize { let mut c = lock();