From 1d0ba9953d2bdc7d43a47705b598df97197fb9f5 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 9 Sep 2018 16:35:21 -0700 Subject: Fixing clang build error and warnings --- Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Graphics/GraphicsEngineOpenGL') diff --git a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp index 80af0fd0..c8de2ae5 100644 --- a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp +++ b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp @@ -872,8 +872,7 @@ namespace Diligent // Viewport and scissor settings are not applied. if( pView != nullptr ) { - const auto& ViewDesc = pView->GetDesc(); - VERIFY( ViewDesc.ViewType == TEXTURE_VIEW_DEPTH_STENCIL, "Incorrect view type: depth stencil is expected" ); + VERIFY( pView->GetDesc().ViewType == TEXTURE_VIEW_DEPTH_STENCIL, "Incorrect view type: depth stencil is expected" ); CHECK_DYNAMIC_TYPE( TextureViewGLImpl, pView ); if( pView != m_pBoundDepthStencil ) { @@ -917,8 +916,7 @@ namespace Diligent Int32 RTIndex = -1; if( pView != nullptr ) { - const auto& ViewDesc = pView->GetDesc(); - VERIFY( ViewDesc.ViewType == TEXTURE_VIEW_RENDER_TARGET, "Incorrect view type: render target is expected" ); + VERIFY( pView->GetDesc().ViewType == TEXTURE_VIEW_RENDER_TARGET, "Incorrect view type: render target is expected" ); CHECK_DYNAMIC_TYPE( TextureViewGLImpl, pView ); for( Uint32 rt = 0; rt < m_NumBoundRenderTargets; ++rt ) if( m_pBoundRenderTargets[rt] == pView ) -- cgit v1.2.3