From 5384e189c45a6238c2957d7c0d829742eee30019 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Wed, 11 Mar 2015 20:56:16 +0600 Subject: [PATCH] Don't discard frame buffers creation when VI.height == 0 Fixed auxilary color buffers creation in Pokemon Stadium. --- FrameBuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FrameBuffer.cpp b/FrameBuffer.cpp index 853f9036..e0372fc2 100644 --- a/FrameBuffer.cpp +++ b/FrameBuffer.cpp @@ -336,7 +336,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 || _height == 0) // H width is zero. Don't save + if (VI.width == 0 || _height == 0) return; OGLVideo & ogl = video(); if (m_pCurrent != NULL && gDP.colorImage.height > 0) {