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

FrameBuffer::init - clear buffer texture after allocation.

Fixed garbage on screen in some games on Linix, e.g. Tsumi To Batsu.
This commit is contained in:
Sergey Lipskiy 2016-03-04 10:58:52 +06:00
parent 095df6e3e5
commit d9d6d4530a

View File

@ -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)