diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index feb84b7e..d83e3eed 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -2150,13 +2150,11 @@ namespace bgfx { namespace gl m_resolution = _resolution; m_resolution.m_flags = flags; - uint32_t flags = m_resolution.m_flags; -#if BGFX_CONFIG_USE_OVR - if ((flags & BGFX_RESET_HMD) && m_ovr.isInitialized()) + if ( (flags & BGFX_RESET_HMD) + && m_ovr.isInitialized() ) { flags &= ~BGFX_RESET_MSAA_MASK; } -#endif // BGFX_CONFIG_OVR setRenderContextSize(m_resolution.m_width , m_resolution.m_height