1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Correct frame buffer usage check.

Fixed Pokémon Stadium 2 - Cut off pokémon portraits #2110
This commit is contained in:
Sergey Lipskiy 2019-11-22 16:23:25 +07:00
parent a01718d2cf
commit 89bcb61c02

View File

@ -377,7 +377,7 @@ bool CheckForFrameBufferTexture(u32 _address, u32 _width, u32 _bytes)
const u32 texEndAddress = _address + _bytes - 1;
if (_address > pBuffer->m_startAddress &&
pBuffer->m_width != _width &&
std::abs((s32)pBuffer->m_width - (s32)_width) > 1 &&
texEndAddress > (pBuffer->m_endAddress + (pBuffer->m_width << pBuffer->m_size >> 1))) {
//fbList.removeBuffer(pBuffer->m_startAddress);
bRes = false;