Permalink
Browse files

Address feedback, thanks!

  • Loading branch information...
hrydgard committed Oct 28, 2018
1 parent c074d3c commit c6c22a03fdd3de88e67299d8917229c1affcb9f8
Showing with 2 additions and 2 deletions.
  1. +2 −2 GPU/Common/FramebufferCommon.cpp
@@ -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;
}

0 comments on commit c6c22a0

Please sign in to comment.