1
0
Fork 0
forked from wry/wry

render: make damage visualizer slightly less inefficient

This commit is contained in:
Julian Orth 2025-07-27 15:00:09 +02:00
parent 225dda8e5b
commit e12ececca4
9 changed files with 30 additions and 19 deletions

View file

@ -132,7 +132,7 @@ impl VulkanShmImage {
if tt == TransferType::Download {
return Err(VulkanError::UndefinedContents);
}
damage = Region::new2(Rect::new_sized(0, 0, img.width as _, img.height as _).unwrap());
damage = Region::new(Rect::new_sized(0, 0, img.width as _, img.height as _).unwrap());
}
let copies = &mut *data.regions.borrow_mut();