Small fix for a bad block transfer in Soul Calibur

This commit is contained in:
Henrik Rydgård 2017-11-01 14:43:00 +01:00
parent 533f80a056
commit 41089ca284

View File

@ -2000,6 +2000,10 @@ void FramebufferManagerCommon::PackFramebufferSync_(VirtualFramebuffer *vfb, int
}
void FramebufferManagerCommon::ReadFramebufferToMemory(VirtualFramebuffer *vfb, bool sync, int x, int y, int w, int h) {
// Clamp to width. Sometimes block transfers can cause this to hit.
if (x + w >= vfb->width) {
w = vfb->width - x;
}
if (vfb) {
// We'll pseudo-blit framebuffers here to get a resized version of vfb.
OptimizeDownloadRange(vfb, x, y, w, h);