mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 03:03:50 +01:00
Address feedback, thanks!
This commit is contained in:
1 parent
c074d3c61f
commit
c6c22a03fd
1 file changed
+2
-2
@@ -2064,8 +2064,8 @@ void FramebufferManagerCommon::PackFramebufferSync_(VirtualFramebuffer *vfb, int
|
||||
|
||||
const int dstByteOffset = (y * vfb->fb_stride + x) * dstBpp;
|
||||
|
||||
if (!Memory::IsValidRange(fb_address + dstByteOffset, (h * vfb->fb_stride + w) * dstBpp)) {
|
||||
ERROR_LOG(G3D, "PackFramebufferSync_ would read outside of memory, ignoring");
|
||||
if (!Memory::IsValidRange(fb_address + dstByteOffset, ((h - 1) * vfb->fb_stride + w) * dstBpp)) {
|
||||
ERROR_LOG(G3D, "PackFramebufferSync_ would write outside of memory, ignoring");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user