Fix for VBO pools not getting cleared appropriately.

meow-7.2.2
Dave Parks 2011-10-19 16:19:00 -05:00
parent b17023e3b0
commit 4ec72ed0a6
2 changed files with 3 additions and 5 deletions

View File

@ -227,6 +227,7 @@ void LLVBOPool::cleanup()
l.pop_front();
LLVertexBuffer::sAllocatedBytes -= size;
sBytesPooled -= size;
}
size *= 2;

View File

@ -6109,11 +6109,8 @@ void LLPipeline::resetVertexBuffers()
gSky.resetVertexBuffers();
if (LLVertexBuffer::sGLCount > 0)
{
LLVertexBuffer::cleanupClass();
}
LLVertexBuffer::cleanupClass();
//delete all name pool caches
LLGLNamePool::cleanupPools();