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);
|
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;
|
||||||
|
|
Loading…
Reference in New Issue