Skip to content

Commit

Permalink
Fixed issue#48. Passing bad MSAA value to glRenderbufferStorage.
Browse files Browse the repository at this point in the history
  • Loading branch information
bkaradzic committed Dec 12, 2013
1 parent 492e99e commit 1a6300b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer_gl.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 1a6300b

Please sign in to comment.