TexPool: Simplify code
This commit is contained in:
parent
da2f68cdba
commit
ac9bc21947
|
@ -180,14 +180,14 @@ void TexPool::release(TEXFBO &obj)
|
|||
|
||||
TEXFBO::fini(last.obj);
|
||||
|
||||
uint32_t removedMem = byteCount(removedSize);
|
||||
newMemSize -= removedMem;
|
||||
p->memSize -= removedMem;
|
||||
newMemSize -= byteCount(removedSize);;
|
||||
--p->objCount;
|
||||
|
||||
// qDebug() << "TexPool: <!-> (" << last.obj.tex << last.obj.fbo << ")";
|
||||
}
|
||||
|
||||
p->memSize = newMemSize;
|
||||
|
||||
/* Retain object */
|
||||
p->priorityQueue.prepend(obj);
|
||||
CacheNode cnode;
|
||||
|
|
Loading…
Reference in New Issue