Browse Source

minor followup to #1494
we do try and avoid auto for places that aren't mutatable patterns so folks can scan what's going on under the hood

AzaezelX 3 months ago
parent
commit
2e15018ad3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Engine/source/gfx/gfxDevice.cpp

+ 1 - 1
Engine/source/gfx/gfxDevice.cpp

@@ -292,7 +292,7 @@ GFXStateBlockRef GFXDevice::createStateBlock(const GFXStateBlockDesc& desc)
    PROFILE_SCOPE( GFXDevice_CreateStateBlock );
    PROFILE_SCOPE( GFXDevice_CreateStateBlock );
 
 
    U32 hashValue = desc.getHashValue();
    U32 hashValue = desc.getHashValue();
-   auto it = mCurrentStateBlocks.find(hashValue);
+   StateBlockMap::Iterator it = mCurrentStateBlocks.find(hashValue);
    if (it != mCurrentStateBlocks.end())
    if (it != mCurrentStateBlocks.end())
       return it->value;
       return it->value;