1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Only call texture barrier if we are sampling from current FB

This commit is contained in:
Logan McNaughton 2018-04-14 21:05:12 -06:00 committed by Sergey Lipskiy
parent c9cf91e8da
commit 7bad64ce70

View File

@ -1278,7 +1278,8 @@ void FrameBuffer_ActivateBufferTexture(u32 t, u32 _frameBufferAddress)
// frameBufferList().renderBuffer(pBuffer->m_startAddress);
textureCache().activateTexture(t, pTexture);
gfxContext.textureBarrier();
if (pBuffer == frameBufferList().getCurrent())
gfxContext.textureBarrier();
gDP.changed |= CHANGED_FB_TEXTURE;
}
@ -1294,7 +1295,8 @@ void FrameBuffer_ActivateBufferTextureBG(u32 t, u32 _frameBufferAddress)
// frameBufferList().renderBuffer(pBuffer->m_startAddress);
textureCache().activateTexture(t, pTexture);
gfxContext.textureBarrier();
if (pBuffer == frameBufferList().getCurrent())
gfxContext.textureBarrier();
gDP.changed |= CHANGED_FB_TEXTURE;
}