mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-12 04:03:53 +00:00
Remove AUTO_VAR macro and _toString function (#592)
This commit is contained in:
parent
7d6658fe5b
commit
55231bb8d3
294 changed files with 5067 additions and 5773 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue