mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Merge pull request #1496 from Azaezel/alpha41/NoAuto
minor followup to #1494
This commit is contained in:
commit
11a84d7e48
|
|
@ -292,7 +292,7 @@ GFXStateBlockRef GFXDevice::createStateBlock(const GFXStateBlockDesc& desc)
|
|||
PROFILE_SCOPE( GFXDevice_CreateStateBlock );
|
||||
|
||||
U32 hashValue = desc.getHashValue();
|
||||
auto it = mCurrentStateBlocks.find(hashValue);
|
||||
StateBlockMap::Iterator it = mCurrentStateBlocks.find(hashValue);
|
||||
if (it != mCurrentStateBlocks.end())
|
||||
return it->value;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue