mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Set m_cleared to false in FrameBuffer::copyRdram().
m_cleared means that the RDRAM buffer contains only fillcolor. It should be false after copyRdram() since from now the buffer validity check should work with m_RdramCopy. It Fixes Kirby 64 broken level selection, #2491 Without this fix, the level selection is broken when copy color to RDRAM is disabled
This commit is contained in:
parent
6b94f41df6
commit
7abf593da3
|
@ -224,7 +224,6 @@ void ColorBufferToRDRAM::_copy(u32 _startAddress, u32 _endAddress, bool _sync)
|
||||||
|
|
||||||
m_pCurFrameBuffer->m_copiedToRdram = true;
|
m_pCurFrameBuffer->m_copiedToRdram = true;
|
||||||
m_pCurFrameBuffer->copyRdram();
|
m_pCurFrameBuffer->copyRdram();
|
||||||
m_pCurFrameBuffer->m_cleared = false;
|
|
||||||
|
|
||||||
m_pCurFrameBuffer->cleanUp();
|
m_pCurFrameBuffer->cleanUp();
|
||||||
|
|
||||||
|
@ -282,6 +281,4 @@ void copyWhiteToRDRAM(FrameBuffer * _pBuffer)
|
||||||
}
|
}
|
||||||
_pBuffer->m_copiedToRdram = true;
|
_pBuffer->m_copiedToRdram = true;
|
||||||
_pBuffer->copyRdram();
|
_pBuffer->copyRdram();
|
||||||
|
|
||||||
_pBuffer->m_cleared = false;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -218,6 +218,9 @@ void FrameBuffer::copyRdram()
|
||||||
const u32 height = _cutHeight(m_startAddress, m_height, stride);
|
const u32 height = _cutHeight(m_startAddress, m_height, stride);
|
||||||
if (height == 0)
|
if (height == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
m_cleared = false;
|
||||||
|
|
||||||
const u32 dataSize = stride * height;
|
const u32 dataSize = stride * height;
|
||||||
|
|
||||||
// Auxiliary frame buffer
|
// Auxiliary frame buffer
|
||||||
|
@ -235,7 +238,6 @@ void FrameBuffer::copyRdram()
|
||||||
else
|
else
|
||||||
pData[start++] = 0;
|
pData[start++] = 0;
|
||||||
}
|
}
|
||||||
m_cleared = false;
|
|
||||||
m_fingerprint = true;
|
m_fingerprint = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user