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

Correct CheckForFrameBufferTexture:

if found buffer is CFB - remove it. Buffers renderd by CPU can't be used as texture frame buffer.

Fixed excitebike64: black textures (regression) #345
This commit is contained in:
Sergey Lipskiy 2015-04-03 19:48:38 +06:00
parent 272af69077
commit 5ccf6ee60a

View File

@ -383,6 +383,11 @@ bool CheckForFrameBufferTexture(u32 _address, u32 _bytes)
bRes = false;
}
if (pBuffer->m_cfb) {
frameBufferList().removeBuffer(pBuffer->m_startAddress);
bRes = false;
}
if ((config.generalEmulation.hacks & hack_noDepthFrameBuffers) != 0 && pBuffer->m_isDepthBuffer) {
frameBufferList().removeBuffer(pBuffer->m_startAddress);
bRes = false;