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

Unbind FBO before clearing frame buffers list.

Fixed memory leak on graphics context destroy.
This commit is contained in:
Sergey Lipskiy 2017-11-19 19:55:13 +07:00
parent 26623cec1f
commit fbd4a9a016

View File

@ -488,10 +488,10 @@ void FrameBufferList::init()
}
void FrameBufferList::destroy() {
gfxContext.bindFramebuffer(bufferTarget::FRAMEBUFFER, ObjectHandle::null);
m_list.clear();
m_pCurrent = nullptr;
m_pCopy = nullptr;
gfxContext.bindFramebuffer(bufferTarget::DRAW_FRAMEBUFFER, ObjectHandle::null);
}
void FrameBufferList::setBufferChanged(f32 _maxY)