render: make damage visualizer slightly less inefficient
This commit is contained in:
parent
225dda8e5b
commit
e12ececca4
9 changed files with 30 additions and 19 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue