mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-21 23:53:51 +00:00
use const for consistency
This commit is contained in:
parent
511efcf462
commit
aad70af468
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue