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:
parent
c9cf91e8da
commit
7bad64ce70
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user