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:
parent
26623cec1f
commit
fbd4a9a016
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user