TexPool: Simplify code

This commit is contained in:
Jonas Kulla 2013-11-23 12:40:23 +01:00
parent da2f68cdba
commit ac9bc21947
1 changed files with 3 additions and 3 deletions

View File

@ -180,14 +180,14 @@ void TexPool::release(TEXFBO &obj)
TEXFBO::fini(last.obj); TEXFBO::fini(last.obj);
uint32_t removedMem = byteCount(removedSize); newMemSize -= byteCount(removedSize);;
newMemSize -= removedMem;
p->memSize -= removedMem;
--p->objCount; --p->objCount;
// qDebug() << "TexPool: <!-> (" << last.obj.tex << last.obj.fbo << ")"; // qDebug() << "TexPool: <!-> (" << last.obj.tex << last.obj.fbo << ")";
} }
p->memSize = newMemSize;
/* Retain object */ /* Retain object */
p->priorityQueue.prepend(obj); p->priorityQueue.prepend(obj);
CacheNode cnode; CacheNode cnode;