mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 03:44:32 +01:00
Avoid displaying a wrong-format framebuf.
This commit is contained in:
1 parent
8ec87040df
commit
7a299fb1f2
1 file changed
+9
@@ -1180,6 +1180,15 @@ void FramebufferManager::CopyDisplayToOutput() {
|
||||
}
|
||||
}
|
||||
|
||||
if (vfb && vfb->format != displayFormat_) {
|
||||
if (vfb->last_frame_render + FBO_OLD_AGE < gpuStats.numFlips) {
|
||||
// The game probably switched formats on us.
|
||||
vfb->format = displayFormat_;
|
||||
} else {
|
||||
vfb = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (!vfb) {
|
||||
if (Memory::IsValidAddress(displayFramebufPtr_)) {
|
||||
// The game is displaying something directly from RAM. In GTA, it's decoded video.
|
||||
|
||||
Reference in new issue
Block a user