mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Fixed crash in case of wrong FrameBuffer::m_scale initialization.
This commit is contained in:
parent
10ec517fe9
commit
4808179691
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user