From 922a16a013f846cf3cc40f4a4a4ccd3096ce3575 Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Fri, 27 Dec 2013 18:46:04 +0100 Subject: [PATCH] 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. --- src/texpool.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/texpool.cpp b/src/texpool.cpp index 19dbde9..da8aa85 100644 --- a/src/texpool.cpp +++ b/src/texpool.cpp @@ -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;