From d8db8ecfcc0de67fadc91bcee13b0ab532a5a734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 23 Aug 2019 00:11:13 +0200 Subject: [PATCH] Revert "GPU: Download CLUTs when loading at 256 stride." This reverts commit dc03050730ff5ce41c2b20433c11771589b49f2e. --- GPU/Common/FramebufferCommon.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/GPU/Common/FramebufferCommon.cpp b/GPU/Common/FramebufferCommon.cpp index bdd4490275..6c900531e7 100644 --- a/GPU/Common/FramebufferCommon.cpp +++ b/GPU/Common/FramebufferCommon.cpp @@ -2083,11 +2083,6 @@ void FramebufferManagerCommon::DownloadFramebufferForClut(u32 fb_address, u32 lo int w = std::min(pixels % vfb->fb_stride, (int)vfb->width); int h = std::min((pixels + vfb->fb_stride - 1) / vfb->fb_stride, (int)vfb->height); - if (w == 0 && h > 0) { - // Exactly aligned (means pixels == vfb->fb_stride, so modulus gave zero.) - w = std::min(vfb->fb_stride, (int)vfb->width); - } - // We might still have a pending draw to the fb in question, flush if so. FlushBeforeCopy();