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

Don't create frame buffer with zero height.

Fixed load from savestates in 1080.
This commit is contained in:
Sergey Lipskiy 2015-02-23 21:31:43 +06:00
parent 8e546e6f4b
commit d4264e18a4

View File

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