1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-06-27 23:14:05 +00:00

Correct FrameBuffer::isAuxiliary()

If buffer's size is 8bit, it is an auxiliary buffer.

Fixed homebrew toonshading not working properly. #2644
This commit is contained in:
Sergey Lipskiy 2022-02-13 19:52:19 +07:00
parent 58faa2874a
commit 49373fde71

View File

@ -143,7 +143,7 @@ void FrameBuffer::_setAndAttachTexture(ObjectHandle _fbo, CachedTexture *_pTextu
bool FrameBuffer::isAuxiliary() const
{
return m_width != VI.width;
return m_width != VI.width || m_size < G_IM_SIZ_16b;
}
void FrameBuffer::init(u32 _address, u16 _format, u16 _size, u16 _width, bool _cfb)