mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-12-18 02:48:28 +00:00
Invalidate FBOs when video width is larger.
This way we won't try to upload them wrong. Fixes #8392.
This commit is contained in:
parent
59523f1327
commit
7993866ee4
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user