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

Fixed crash in case of wrong FrameBuffer::m_scale initialization.

This commit is contained in:
Sergey Lipskiy 2019-09-05 18:47:45 +07:00
parent 10ec517fe9
commit 4808179691

View File

@ -175,7 +175,7 @@ void FrameBuffer::init(u32 _address, u16 _format, u16 _size, u16 _width, bool _c
} else if (config.frameBufferEmulation.nativeResFactor != 0 && config.frameBufferEmulation.enable != 0) {
m_scale = static_cast<float>(config.frameBufferEmulation.nativeResFactor);
} else {
m_scale = dwnd().getScaleX();
m_scale = std::max(dwnd().getScaleX(), 1.0f);
}
m_cfb = _cfb;
m_cleared = false;