Fix variable shadowing.
This commit is contained in:
parent
977912dcd5
commit
0e4553b1fa
|
@ -258,11 +258,11 @@ GLuint GL_BITMAP_CACHE::cacheBitmap( const BITMAP_BASE* aBitmap )
|
||||||
auto toRemoveLru = m_cacheLru.end();
|
auto toRemoveLru = m_cacheLru.end();
|
||||||
|
|
||||||
// Remove entries accessed > 1s ago first
|
// Remove entries accessed > 1s ago first
|
||||||
for( const auto& [kiid, bmp] : m_bitmaps )
|
for( const auto& [kiid, cachedBmp] : m_bitmaps )
|
||||||
{
|
{
|
||||||
const int cacheTimeoutMillis = 1000L;
|
const int cacheTimeoutMillis = 1000L;
|
||||||
|
|
||||||
if( currentTime - bmp.accessTime > cacheTimeoutMillis )
|
if( currentTime - cachedBmp.accessTime > cacheTimeoutMillis )
|
||||||
{
|
{
|
||||||
toRemove = kiid;
|
toRemove = kiid;
|
||||||
toRemoveLru = std::find( m_cacheLru.begin(), m_cacheLru.end(), toRemove );
|
toRemoveLru = std::find( m_cacheLru.begin(), m_cacheLru.end(), toRemove );
|
||||||
|
|
Loading…
Reference in New Issue