From 5280028a82408c1ffcf3cadfaa78ef05955ee0d6 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Tue, 29 Jul 2025 11:03:42 -0700 Subject: [PATCH] media/viewer: fix broken culling Signed-off-by: William Casarin --- crates/notedeck_ui/src/media/viewer.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/notedeck_ui/src/media/viewer.rs b/crates/notedeck_ui/src/media/viewer.rs index 18eecc8f..a6d199b2 100644 --- a/crates/notedeck_ui/src/media/viewer.rs +++ b/crates/notedeck_ui/src/media/viewer.rs @@ -212,11 +212,13 @@ impl<'a> MediaViewer<'a> { // the area the next image will be put in. let mut img_rect = ui.available_rect_before_wrap(); + /* if !ui.is_rect_visible(img_rect) { // just stop rendering images if we're going out of the scene // basic culling when we have lots of images break; } + */ { let size = texture.size_vec2();