mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-02 09:03:37 +00:00
Correct _loadSpriteImage: if bg image address is inside cfb buffer, remove that buffer.
This commit is contained in:
parent
f787483dbb
commit
dcbea90e76
|
@ -1978,6 +1978,10 @@ void _loadSpriteImage(const uSprite *_pSprite)
|
|||
{
|
||||
FrameBuffer *pBuffer = frameBufferList().findBuffer(gSP.bgImage.address);
|
||||
if (pBuffer != nullptr) {
|
||||
if (pBuffer->m_cfb) {
|
||||
frameBufferList().removeBuffer(pBuffer->m_startAddress);
|
||||
return;
|
||||
}
|
||||
gDP.tiles[0].frameBufferAddress = pBuffer->m_startAddress;
|
||||
gDP.tiles[0].textureMode = TEXTUREMODE_FRAMEBUFFER_BG;
|
||||
gDP.tiles[0].loadType = LOADTYPE_TILE;
|
||||
|
|
Loading…
Reference in New Issue
Block a user