From f91320aa493c6c49d086a3b8c4b41a738f217895 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Fri, 6 Dec 2024 15:03:27 -0800 Subject: [PATCH] gles: Evict entries from `dmabuf_cache` regardless of `wayland_frontend` Without `wayland_frontend`, this was pushing to the cache, but never removing buffers. That presumably is not correct. --- src/backend/renderer/gles/mod.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/backend/renderer/gles/mod.rs b/src/backend/renderer/gles/mod.rs index eae24a0faa36..a59dd3cd1525 100644 --- a/src/backend/renderer/gles/mod.rs +++ b/src/backend/renderer/gles/mod.rs @@ -627,7 +627,6 @@ impl GlesRenderer { #[profiling::function] fn cleanup(&mut self) { - #[cfg(feature = "wayland_frontend")] self.dmabuf_cache.retain(|entry, _tex| !entry.is_gone()); // Free outdated buffer resources // TODO: Replace with `drain_filter` once it lands