mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-18 17:14:21 +01:00
media/viewer: fix broken culling
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user