1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-06-16 01:20:35 +00:00

Tiny frame buffer emulation fix. (#15)

Co-authored-by: DaMarkov <DaMarkovZED@gmail.com>
This commit is contained in:
DaMarkov 2022-03-31 20:29:28 +02:00 committed by GitHub
parent 746be9cfa1
commit 4f22e39d63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,7 +87,11 @@ void VI_UpdateSize()
// const int fsaa = ((*REG.VI_STATUS) >> 8) & 3;
// const int divot = ((*REG.VI_STATUS) >> 4) & 1;
FrameBufferList & fbList = frameBufferList();
#ifdef NATIVE
FrameBuffer* pBuffer = fbList.findBuffer(VI.lastOrigin);
#else
FrameBuffer* pBuffer = fbList.findBuffer(VI.lastOrigin & 0xffffff);
#endif
DepthBuffer * pDepthBuffer = pBuffer != nullptr ? pBuffer->m_pDepthBuffer : nullptr;
if (config.frameBufferEmulation.enable &&
((interlacedPrev != VI.interlaced) ||