From aad70af468a8a670ba0b6d58890fb2e5fee616d3 Mon Sep 17 00:00:00 2001 From: rextimmy Date: Tue, 5 Jan 2021 10:43:12 +1000 Subject: [PATCH] use const for consistency --- Engine/source/gfx/D3D11/gfxD3D11TextureObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/gfx/D3D11/gfxD3D11TextureObject.cpp b/Engine/source/gfx/D3D11/gfxD3D11TextureObject.cpp index a62eba1ba..4cb555558 100644 --- a/Engine/source/gfx/D3D11/gfxD3D11TextureObject.cpp +++ b/Engine/source/gfx/D3D11/gfxD3D11TextureObject.cpp @@ -96,7 +96,7 @@ GFXLockedRect *GFXD3D11TextureObject::lock(U32 mipLevel /*= 0*/, RectI *inRect / AssertFatal(false, "GFXD3D11TextureObject:lock - failed to map render target resource!"); - bool is3D = mStagingTex->getDepth() != 0; + const bool is3D = mStagingTex->getDepth() != 0; const U32 width = mTextureSize.x >> mipLevel; const U32 height = mTextureSize.y >> mipLevel; const U32 depth = is3D ? mTextureSize.z >> mipLevel : 1;