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];
 | 
						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;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue