mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-20 18:04:18 +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.
|
// the area the next image will be put in.
|
||||||
let mut img_rect = ui.available_rect_before_wrap();
|
let mut img_rect = ui.available_rect_before_wrap();
|
||||||
|
/*
|
||||||
if !ui.is_rect_visible(img_rect) {
|
if !ui.is_rect_visible(img_rect) {
|
||||||
// just stop rendering images if we're going out of the scene
|
// just stop rendering images if we're going out of the scene
|
||||||
// basic culling when we have lots of images
|
// basic culling when we have lots of images
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
{
|
{
|
||||||
let size = texture.size_vec2();
|
let size = texture.size_vec2();
|
||||||
|
|||||||
Reference in New Issue
Block a user