From 3a270567592074f4b39b395d053f03f3a2317c84 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Thu, 16 Oct 2014 17:50:32 +0700 Subject: [PATCH] Don't write buffer address to RDRAM for CFB buffers. --- FrameBuffer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FrameBuffer.cpp b/FrameBuffer.cpp index b4e27cf5..21a0f453 100644 --- a/FrameBuffer.cpp +++ b/FrameBuffer.cpp @@ -264,7 +264,8 @@ void FrameBufferList::saveBuffer(u32 _address, u16 _format, u16 _size, u16 _widt // HACK ALERT: Dirty hack for Mario Tennis score board if (bNew && (m_pCurrent->m_startAddress == 0x13ba50 || m_pCurrent->m_startAddress == 0x264430)) g_RDRAMtoFB.CopyFromRDRAM(m_pCurrent->m_startAddress, false); - *(u32*)&RDRAM[m_pCurrent->m_startAddress] = m_pCurrent->m_startAddress; + if (!_cfb) + *(u32*)&RDRAM[m_pCurrent->m_startAddress] = m_pCurrent->m_startAddress; m_pCurrent->m_cleared = false;