diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index 4de3131c..2e6897a6 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -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<