mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Reset gDPTile::frameBuffer if it points to removed buffer.
Fixed Paper Mario: Red Station Crashing #1539
This commit is contained in:
parent
3c8689d848
commit
203c53307d
|
@ -46,6 +46,10 @@ FrameBuffer::FrameBuffer() :
|
|||
|
||||
FrameBuffer::~FrameBuffer()
|
||||
{
|
||||
for (u32 i = 0; i < 8; ++i) {
|
||||
if (gDP.tiles[i].frameBuffer == this)
|
||||
gDP.tiles[i].frameBuffer = nullptr;
|
||||
}
|
||||
gfxContext.deleteFramebuffer(m_FBO);
|
||||
gfxContext.deleteFramebuffer(m_resolveFBO);
|
||||
gfxContext.deleteFramebuffer(m_SubFBO);
|
||||
|
|
Loading…
Reference in New Issue
Block a user