TexPool: Fix wrong total memory consumption calculation

The byte count of textures released into the pool was
erroneously added twice to the total byte count.
This commit is contained in:
Jonas Kulla 2013-12-27 18:46:04 +01:00
parent fbf02cf2ce
commit 922a16a013
1 changed files with 0 additions and 1 deletions

View File

@ -196,7 +196,6 @@ void TexPool::release(TEXFBO &obj)
CNodeList &bucket = p->poolHash[size]; CNodeList &bucket = p->poolHash[size];
bucket.append(cnode); bucket.append(cnode);
p->memSize += byteCount(size);
++p->objCount; ++p->objCount;
// qDebug() << "TexPool: <!+> (" << obj.width << obj.height << ") Current size:" << p->memSize; // qDebug() << "TexPool: <!+> (" << obj.width << obj.height << ") Current size:" << p->memSize;