From 2e15018ad30743fdd4067545cd786cfba914ebe1 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Fri, 6 Jun 2025 11:00:12 -0500 Subject: [PATCH] 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 --- Engine/source/gfx/gfxDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/gfx/gfxDevice.cpp b/Engine/source/gfx/gfxDevice.cpp index c5e5de495..b0eb1b737 100644 --- a/Engine/source/gfx/gfxDevice.cpp +++ b/Engine/source/gfx/gfxDevice.cpp @@ -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;