mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Fixing Andriod build (possibly, cannot test)
http://www.cplusplus.com/reference/list/list/erase/ cplusplus.com says that std::list::erase takes arguments of const_iterator, but from build errors the Andriod runtime says it takes non const iterators. gcc doesn't mind removing the constness and it's not so important that they're const, so I'm removing them.
This commit is contained in:
parent
4e415802fa
commit
0dfbd34b09
|
@ -524,15 +524,15 @@ void TextureCache::_checkCacheSize()
|
|||
if (m_cachedBytes <= m_maxBytes)
|
||||
return;
|
||||
|
||||
Textures::const_iterator iter = m_textures.cend();
|
||||
Textures::iterator iter = m_textures.end();
|
||||
do {
|
||||
--iter;
|
||||
const CachedTexture& tex = *iter;
|
||||
CachedTexture& tex = *iter;
|
||||
m_cachedBytes -= tex.textureBytes;
|
||||
glDeleteTextures(1, &tex.glName);
|
||||
m_lruTextureLocations.erase(tex.crc);
|
||||
} while (m_cachedBytes > m_maxBytes && iter != m_textures.cbegin());
|
||||
m_textures.erase(iter, m_textures.cend());
|
||||
m_textures.erase(iter, m_textures.end());
|
||||
}
|
||||
|
||||
CachedTexture * TextureCache::_addTexture(u32 _crc32)
|
||||
|
|
Loading…
Reference in New Issue
Block a user