diff --git a/src/FrameBuffer.cpp b/src/FrameBuffer.cpp index ceaef888..acdc7d44 100644 --- a/src/FrameBuffer.cpp +++ b/src/FrameBuffer.cpp @@ -441,8 +441,11 @@ FrameBuffer * FrameBufferList::findTmpBuffer(u32 _address) void FrameBufferList::saveBuffer(u32 _address, u16 _format, u16 _size, u16 _width, u16 _height, bool _cfb) { - if (VI.width == 0 || _height == 0) + if (VI.width == 0 || _height == 0) { + m_pCurrent = NULL; + glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0); return; + } OGLVideo & ogl = video(); if (m_pCurrent != NULL) {