From f81dadd9b8414c4f99567529f9d51a9a19888919 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Fri, 5 Jun 2015 09:54:14 -0700 Subject: [PATCH] Fixed shadowing variable warning. --- src/renderer_gl.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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