mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Set buffer to nullptr after free
This commit is contained in:
parent
a3af1a88e2
commit
47013e2473
|
@ -72,6 +72,7 @@ void RDRAMtoColorBuffer::destroy()
|
||||||
m_pTexture = nullptr;
|
m_pTexture = nullptr;
|
||||||
}
|
}
|
||||||
free(m_pbuf);
|
free(m_pbuf);
|
||||||
|
m_pbuf = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RDRAMtoColorBuffer::addAddress(u32 _address, u32 _size)
|
void RDRAMtoColorBuffer::addAddress(u32 _address, u32 _size)
|
||||||
|
|
|
@ -72,6 +72,7 @@ void PaletteTexture::destroy()
|
||||||
textureCache().removeFrameBufferTexture(m_pTexture);
|
textureCache().removeFrameBufferTexture(m_pTexture);
|
||||||
m_pTexture = nullptr;
|
m_pTexture = nullptr;
|
||||||
free(m_pbuf);
|
free(m_pbuf);
|
||||||
|
m_pbuf = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PaletteTexture::update()
|
void PaletteTexture::update()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user