mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Fixed issue#48. Passing bad MSAA value to glRenderbufferStorage.
This commit is contained in:
parent
492e99e1c3
commit
1a6300b6c4
1 changed files with 1 additions and 1 deletions
|
@ -534,7 +534,7 @@ namespace bgfx
|
|||
|
||||
m_resolution = _resolution;
|
||||
|
||||
uint32_t msaa = 1<<( (m_resolution.m_flags&BGFX_RESET_MSAA_MASK)>>BGFX_RESET_MSAA_SHIFT);
|
||||
uint32_t msaa = (m_resolution.m_flags&BGFX_RESET_MSAA_MASK)>>BGFX_RESET_MSAA_SHIFT;
|
||||
msaa = bx::uint32_min(m_maxMsaa, msaa == 0 ? 0 : 1<<msaa);
|
||||
bool vsync = !!(m_resolution.m_flags&BGFX_RESET_VSYNC);
|
||||
setRenderContextSize(_resolution.m_width, _resolution.m_height, msaa, vsync);
|
||||
|
|
Loading…
Reference in a new issue