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

Remove majora hack when interlaced mode changes.

The hack is currently breaking the bomber's notebook.
This commit is contained in:
Francisco Zurita 2017-09-30 00:02:21 -04:00 committed by Sergey Lipskiy
parent deaf61299f
commit 0c4a86b8c6

View File

@ -84,13 +84,10 @@ void VI_UpdateSize()
FrameBufferList & fbList = frameBufferList();
FrameBuffer * pBuffer = fbList.findBuffer(VI.lastOrigin);
DepthBuffer * pDepthBuffer = pBuffer != nullptr ? pBuffer->m_pDepthBuffer : nullptr;
if (config.frameBufferEmulation.enable && ((config.generalEmulation.hacks & hack_ZeldaMM) == 0) &&
if (config.frameBufferEmulation.enable &&
((interlacedPrev != VI.interlaced) ||
(VI.width > 0 && VI.width != VI.widthPrev) ||
(!VI.interlaced && pDepthBuffer != nullptr && pDepthBuffer->m_width != VI.width)
)
) {
(!VI.interlaced && pDepthBuffer != nullptr && pDepthBuffer->m_width != VI.width))) {
fbList.removeBuffers(VI.widthPrev);
fbList.removeBuffers(VI.width);
depthBufferList().destroy();