diff --git a/common/RenderTiles.hpp b/common/RenderTiles.hpp index bcc508b87..3f47fb462 100644 --- a/common/RenderTiles.hpp +++ b/common/RenderTiles.hpp @@ -228,7 +228,6 @@ namespace RenderTiles const int pixelWidth = tileCombined.getWidth(); const int pixelHeight = tileCombined.getHeight(); assert (pixelWidth > 0 && pixelHeight > 0); - assert (pixelWidth <= 256 && pixelHeight <= 256); const size_t pixmapWidth = tilesByX * pixelWidth; const size_t pixmapHeight = tilesByY * pixelHeight; @@ -311,6 +310,7 @@ namespace RenderTiles { // Can we create a delta ? LOG_TRC("Compress new tile #" << tileIndex); + assert(pixelWidth <= 256 && pixelHeight <= 256); deltaGen.compressOrDelta(pixmap.data(), offsetX, offsetY, pixelWidth, pixelHeight, pixmapWidth, pixmapHeight,