mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-10 12:02:53 +02:00
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:
parent
fbf02cf2ce
commit
922a16a013
1 changed files with 0 additions and 1 deletions
|
@ -196,7 +196,6 @@ void TexPool::release(TEXFBO &obj)
|
|||
CNodeList &bucket = p->poolHash[size];
|
||||
bucket.append(cnode);
|
||||
|
||||
p->memSize += byteCount(size);
|
||||
++p->objCount;
|
||||
|
||||
// qDebug() << "TexPool: <!+> (" << obj.width << obj.height << ") Current size:" << p->memSize;
|
||||
|
|
Loading…
Add table
Reference in a new issue