Disable divisibility checking

This commit is contained in:
Emilia Allison 2023-05-14 20:50:17 -04:00
parent 0b8b067e46
commit 91035bc675
Signed by: emilia
GPG Key ID: 7A3F8997BFE894E0
1 changed files with 3 additions and 0 deletions

View File

@ -204,6 +204,8 @@ impl TransferRegion<'_> {
return Err("Source region is out-of-bounds! (Too wide)"); return Err("Source region is out-of-bounds! (Too wide)");
} }
// Check that source lengths divide destination lengths // Check that source lengths divide destination lengths
/* This section is disabled because it's not
* strictly necessary to have this property (divisibility)
match &self.dest_region { match &self.dest_region {
Region::Point(_) => (), Region::Point(_) => (),
Region::Rect(d1, d2) => { Region::Rect(d1, d2) => {
@ -234,6 +236,7 @@ impl TransferRegion<'_> {
} }
} }
} }
*/
} }
} }