Remove incorrect check for reversed image width

That check was when the image width was in tiles, and another check right below
is the correct equivalent for the new pixel-unit argument
This commit is contained in:
ISSOtm
2022-04-17 00:32:56 +02:00
committed by Eldred Habert
parent 7fdfbbbbba
commit 5be2b96b40

View File

@@ -115,11 +115,6 @@ void reverse() {
options.maxNbTiles[0], options.maxNbTiles[1]);
}
if (nbTileInstances % options.reversedWidth) {
fatal("Image size (%zu tiles) is not divisible by the provided stride (%zu tiles), cannot "
"determine image dimensions",
nbTileInstances, options.reversedWidth);
}
size_t width, height;
size_t usefulWidth = options.reversedWidth - options.inputSlice[1] - options.inputSlice[3];
if (usefulWidth % 8 != 0) {