mirror of
https://github.com/libretro/ppsspp.git
synced 2025-01-22 00:35:04 +00:00
Fix a potential divide by zero.
This commit is contained in:
parent
0d6c002cb0
commit
05feac3eb0
@ -611,7 +611,7 @@ void FramebufferManagerCommon::FindTransferFramebuffers(VirtualFramebuffer *&dst
|
||||
}
|
||||
if (match) {
|
||||
srcYOffset = yOffset;
|
||||
srcXOffset = (byteOffset / bpp) % srcStride;
|
||||
srcXOffset = srcStride == 0 ? 0 : (byteOffset / bpp) % srcStride;
|
||||
srcBuffer = vfb;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user