Remove AUTO_VAR macro and _toString function (#592)
This commit is contained in:
@@ -23,8 +23,8 @@ int MemoryTracker::genTextures()
|
||||
|
||||
void MemoryTracker::releaseLists(int id)
|
||||
{
|
||||
AUTO_VAR(it, GL_LIST_IDS.find(id));
|
||||
if( it != GL_LIST_IDS.end() )
|
||||
auto it = GL_LIST_IDS.find(id);
|
||||
if( it != GL_LIST_IDS.end() )
|
||||
{
|
||||
glDeleteLists(id, it->second);
|
||||
GL_LIST_IDS.erase(it);
|
||||
@@ -43,9 +43,9 @@ void MemoryTracker::releaseTextures()
|
||||
void MemoryTracker::release()
|
||||
{
|
||||
//for (Map.Entry<Integer, Integer> entry : GL_LIST_IDS.entrySet())
|
||||
for(AUTO_VAR(it, GL_LIST_IDS.begin()); it != GL_LIST_IDS.end(); ++it)
|
||||
for(auto& it : GL_LIST_IDS)
|
||||
{
|
||||
glDeleteLists(it->first, it->second);
|
||||
glDeleteLists(it.first, it.second);
|
||||
}
|
||||
GL_LIST_IDS.clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user