media/viewer: fix broken culling

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-07-29 11:03:42 -07:00
parent f4a6e8f9bb
commit 5280028a82

View File

@@ -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();