mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Correct FrameBufferList::removeBuffer - set m_pCurrent to NULL if current color buffer isd removed.
This commit is contained in:
parent
971e45bae0
commit
bbeb149df4
|
@ -357,6 +357,8 @@ void FrameBufferList::removeBuffer(u32 _address )
|
||||||
{
|
{
|
||||||
for (FrameBuffers::iterator iter = m_list.begin(); iter != m_list.end(); ++iter)
|
for (FrameBuffers::iterator iter = m_list.begin(); iter != m_list.end(); ++iter)
|
||||||
if (iter->m_startAddress == _address) {
|
if (iter->m_startAddress == _address) {
|
||||||
|
if (m_pCurrent != NULL && m_pCurrent->m_startAddress == _address)
|
||||||
|
m_pCurrent = NULL;
|
||||||
m_list.erase(iter);
|
m_list.erase(iter);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user