ref: 5be2b96b4042ad5101e7dd38e26de84a54987527
parent: 7fdfbbbbba0d91e684b9d66fdb41b175287ce02e
author: ISSOtm <[email protected]>
date: Sat Apr 16 20:32:56 EDT 2022
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
--- a/src/gfx/reverse.cpp
+++ b/src/gfx/reverse.cpp
@@ -115,11 +115,6 @@
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) {