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

Don't allocate frame buffer with zero height.

This commit is contained in:
Sergey Lipskiy 2014-12-26 21:03:00 +06:00
parent 1c6eb7449a
commit 5460cb32f6

View File

@ -190,7 +190,7 @@ FrameBuffer * FrameBufferList::findTmpBuffer(u32 _address)
void FrameBufferList::saveBuffer(u32 _address, u16 _format, u16 _size, u16 _width, u16 _height, bool _cfb)
{
if (VI.width == 0) // H width is zero. Don't save
if (VI.width == 0 || VI.height == 0) // H width is zero. Don't save
return;
OGLVideo & ogl = video();
m_drawBuffer = GL_FRAMEBUFFER;