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
1 changed files with 5 additions and 1 deletions

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();
FrameBuffer * pBuffer = fbList.findBuffer(VI.lastOrigin & 0xffffff);
#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) ||