VERY experimental Nintendo Switch 2 emulator
C++
Y2R: num_tiles should be allowed when its value is 128 (#1669)
JamePeng68728eef388d
diff --git a/src/core/hw/y2r.cpp b/src/core/hw/y2r.cppindex 48c45564fd..083391e839 100644--- a/src/core/hw/y2r.cpp+++ b/src/core/hw/y2r.cpp@@ -261,7 +261,7 @@ void PerformConversion(ConversionConfiguration& cvt) {ASSERT(cvt.block_alignment != BlockAlignment::Block8x8 || cvt.input_lines % 8 == 0);// Tiles per rowsize_t num_tiles = cvt.input_line_width / 8;- ASSERT(num_tiles < MAX_TILES);+ ASSERT(num_tiles <= MAX_TILES);// Buffer used as a CDMA source/target.std::unique_ptr<u8[]> data_buffer(new u8[cvt.input_line_width * 8 * 4]);