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

Correct FrameBufferList::removeBuffer - set m_pCurrent to NULL if current color buffer isd removed.

This commit is contained in:
Sergey Lipskiy 2015-02-19 13:01:31 +06:00
parent 971e45bae0
commit bbeb149df4

View File

@ -357,6 +357,8 @@ void FrameBufferList::removeBuffer(u32 _address )
{
for (FrameBuffers::iterator iter = m_list.begin(); iter != m_list.end(); ++iter)
if (iter->m_startAddress == _address) {
if (m_pCurrent != NULL && m_pCurrent->m_startAddress == _address)
m_pCurrent = NULL;
m_list.erase(iter);
return;
}