Invalidate FBOs when video width is larger.

This way we won't try to upload them wrong.  Fixes #8392.
This commit is contained in:
Unknown W. Brackets 2016-01-17 21:58:49 -08:00
parent 59523f1327
commit 7993866ee4

View File

@ -497,7 +497,11 @@ void FramebufferManagerCommon::NotifyVideoUpload(u32 addr, int size, int width,
vfb->last_frame_render = gpuStats.numFlips;
}
// TODO: Check width?
if (vfb->fb_stride < width) {
INFO_LOG(SCEGE, "Invalidating FBO for %08x (%i x %i x %i)", vfb->fb_address, vfb->width, vfb->height, vfb->format);
DestroyFramebuf(vfb);
vfbs_.erase(std::remove(vfbs_.begin(), vfbs_.end(), vfb), vfbs_.end());
}
}
}