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

Fix typo in FrameBuffer::getTexture

This commit is contained in:
Sergey Lipskiy 2016-09-11 15:27:59 +07:00
parent 49dd8ff796
commit 21ef068f2a

View File

@ -385,7 +385,7 @@ CachedTexture * FrameBuffer::getTexture(u32 _t)
const bool getDepthTexture = m_isDepthBuffer &&
gDP.colorImage.address == gDP.depthImageAddress &&
m_pDepthBuffer != nullptr &&
(config.generalEmulation.hacks & hack_ZeldaMM) != 0;
(config.generalEmulation.hacks & hack_ZeldaMM) == 0;
CachedTexture *pTexture = getDepthTexture ? m_pDepthBuffer->m_pDepthBufferTexture : m_pTexture;
const u32 shift = (gSP.textureTile[_t]->imageAddress - m_startAddress) >> (m_size - 1);