From d9d6d4530aab8fc7f24ac34e893be2e297cbbf61 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Fri, 4 Mar 2016 10:58:52 +0600 Subject: [PATCH] FrameBuffer::init - clear buffer texture after allocation. Fixed garbage on screen in some games on Linix, e.g. Tsumi To Batsu. --- src/FrameBuffer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/FrameBuffer.cpp b/src/FrameBuffer.cpp index dffb4f65..6d53715c 100644 --- a/src/FrameBuffer.cpp +++ b/src/FrameBuffer.cpp @@ -293,6 +293,8 @@ void FrameBuffer::init(u32 _address, u32 _endAddress, u16 _format, u16 _size, u1 } else #endif // GL_MULTISAMPLING_SUPPORT _setAndAttachTexture(_size, m_pTexture); + + ogl.getRender().clearColorBuffer(nullptr); } void FrameBuffer::reinit(u16 _height)