Merge pull request #22702 from hrydgard/present-small-latest-draw

Reject framebuffers for display by buffer size, not current drawing width/height
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2026-10-21 11:04:42 +02:00
commit f90f6b074d
1 file changed
+4 -2
+4 -2
View File
@@ -1765,8 +1765,10 @@ VirtualFramebuffer *FramebufferManagerCommon::FindDisplayVFB(u32 fbaddr, u32 *of
}
}
// Reject too-tiny framebuffers to display (Godfather, see issue #16915).
if (vfb && vfb->height < 64) {
// Reject too-tiny framebuffers to display (Godfather, see issue #16915). By the buffer's size: width
// and height only cover the latest draw, which can be small (the OoT PSP port ends its frames with
// a 51x51 one).
if (vfb && vfb->bufferHeight < 64) {
vfb = nullptr;
}
return vfb;