fixing small error

This commit is contained in:
Clément Le Bihan
2021-07-06 22:45:58 +02:00
parent 513edf3434
commit 6e37b8f250

View File

@@ -85,13 +85,13 @@ namespace ComSquare::PPU::Utils
int i = 0;
int j = 0;
std::for_each(bufferSrc.begin(), bufferSrc.end(), [&bufferDest, &i, &j](auto &sourceRow) {
i++;
std::for_each(sourceRow.begin(), sourceRow.end(), [&bufferDest, &i, &j](auto &pixel) {
if (pixel > 0xFF)
bufferDest[i][j] = pixel;
j++;
});
j = 0;
i++;
});
}