Fix variable shadowing.

(cherry picked from commit 0e4553b1fa)
This commit is contained in:
Alex Shvartzkop 2023-10-24 04:25:31 +03:00
parent f5e13c5ceb
commit 480dfafb4f
1 changed files with 2 additions and 2 deletions

View File

@ -257,11 +257,11 @@ GLuint GL_BITMAP_CACHE::cacheBitmap( const BITMAP_BASE* aBitmap )
auto toRemoveLru = m_cacheLru.end();
// Remove entries accessed > 1s ago first
for( const auto& [kiid, bmp] : m_bitmaps )
for( const auto& [kiid, cachedBmp] : m_bitmaps )
{
const int cacheTimeoutMillis = 1000L;
if( currentTime - bmp.accessTime > cacheTimeoutMillis )
if( currentTime - cachedBmp.accessTime > cacheTimeoutMillis )
{
toRemove = kiid;
toRemoveLru = std::find( m_cacheLru.begin(), m_cacheLru.end(), toRemove );