Address feedback, thanks!

This commit is contained in:
Henrik Rydgård committed 2018-10-28 16:48:46 +01:00
1 parent c074d3c61f
commit c6c22a03fd
1 file changed
+2 -2
+2 -2
View File
@@ -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;
}