From d4264e18a4ebfea304beb031509149ba7e9152b6 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Mon, 23 Feb 2015 21:31:43 +0600 Subject: [PATCH] Don't create frame buffer with zero height. Fixed load from savestates in 1080. --- FrameBuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FrameBuffer.cpp b/FrameBuffer.cpp index 49c5d5b4..0f8e3af6 100644 --- a/FrameBuffer.cpp +++ b/FrameBuffer.cpp @@ -288,7 +288,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 || 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; OGLVideo & ogl = video(); m_drawBuffer = GL_FRAMEBUFFER;