Skip to content

Commit

Permalink
gles: Evict entries from dmabuf_cache regardless of wayland_frontend
Browse files Browse the repository at this point in the history
Without `wayland_frontend`, this was pushing to the cache, but never
removing buffers. That presumably is not correct.
  • Loading branch information
ids1024 committed Dec 6, 2024
1 parent b32b895 commit f91320a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/backend/renderer/gles/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f91320a

Please sign in to comment.