mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 03:03:50 +01:00
GPU: Download CLUTs when loading at 256 stride.
Or otherwise when loading full rows. Should fix #8406.
This commit is contained in:
1 parent
7de4640f4f
commit
dc03050730
1 file changed
+5
@@ -2082,6 +2082,11 @@ 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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user