diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index 839d2a01..c3724615 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -168,6 +168,7 @@ namespace bgfx , m_postSwapBuffers(NULL) , m_hash( (BX_PLATFORM_WINDOWS<<1) | BX_ARCH_64BIT) , m_rtMsaa(false) + , m_backBufferFbo(0) { m_rt.idx = invalidHandle; memset(&m_resolution, 0, sizeof(m_resolution) ); @@ -185,6 +186,7 @@ namespace bgfx m_resolution = _resolution; uint32_t msaa = 1<<( (m_resolution.m_flags&BGFX_RESET_MSAA_MASK)>>BGFX_RESET_MSAA_SHIFT); + msaa = uint32_min(m_maxMsaa, msaa == 0 ? 0 : 1<m_resolution); @@ -2883,6 +2954,8 @@ namespace bgfx } } + s_renderCtx.blitMsaaFbo(); + int64_t now = bx::getHPCounter(); elapsed += now;