summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-09-09 23:35:21 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-09-09 23:35:21 +0000
commit1d0ba9953d2bdc7d43a47705b598df97197fb9f5 (patch)
treee9453ce41d43ac549a2a46ba197f3861a2ac6c98 /Graphics/GraphicsEngineOpenGL
parentAnother attempt to fix gcc/clang builds (diff)
downloadDiligentCore-1d0ba9953d2bdc7d43a47705b598df97197fb9f5.tar.gz
DiligentCore-1d0ba9953d2bdc7d43a47705b598df97197fb9f5.zip
Fixing clang build error and warnings
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp6
1 files changed, 2 insertions, 4 deletions
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 )