From c45376ddc7a2e49d77b51e5f3181f64cb92f9483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Wed, 15 Mar 2023 20:31:27 +0100 Subject: [PATCH] Typo fix, thanks iota97 --- GPU/Common/ReplacedTexture.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/GPU/Common/ReplacedTexture.cpp b/GPU/Common/ReplacedTexture.cpp index d183743688..a4afe23827 100644 --- a/GPU/Common/ReplacedTexture.cpp +++ b/GPU/Common/ReplacedTexture.cpp @@ -694,22 +694,22 @@ bool ReplacedTexture::CopyLevelTo(int level, void *out, int rowPitch) { if (rowPitch == info.w * 4) { #ifdef PARALLEL_COPY - memcpy(out, data.data(), info.w * 4 * info.h); -#else ParallelMemcpy(&g_threadManager, out, &data[0], info.w * 4 * info.h); +#else + memcpy(out, data.data(), info.w * 4 * info.h); #endif } else { #ifdef PARALLEL_COPY - for (int y = 0; y < info.h; ++y) { - memcpy((uint8_t *)out + rowPitch * y, &data[0] + info.w * 4 * y, info.w * 4); - } -#else const int MIN_LINES_PER_THREAD = 4; ParallelRangeLoop(&g_threadManager, [&](int l, int h) { for (int y = l; y < h; ++y) { memcpy((uint8_t *)out + rowPitch * y, &data[0] + info.w * 4 * y, info.w * 4); } }, 0, info.h, MIN_LINES_PER_THREAD); +#else + for (int y = 0; y < info.h; ++y) { + memcpy((uint8_t *)out + rowPitch * y, &data[0] + info.w * 4 * y, info.w * 4); + } #endif } } else {