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

Correct FrameBufferList::saveBuffer :

disable draw to FBO if new buffer can't be saved because of wrong buffer size
This commit is contained in:
Sergey Lipskiy 2015-09-20 20:12:52 +06:00
parent 6ad1d1d3a5
commit 702a0d8203

View File

@ -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) {