Fix for VBO pools not getting cleared appropriately.
parent
b17023e3b0
commit
4ec72ed0a6
|
|
@ -227,6 +227,7 @@ void LLVBOPool::cleanup()
|
|||
l.pop_front();
|
||||
|
||||
LLVertexBuffer::sAllocatedBytes -= size;
|
||||
sBytesPooled -= size;
|
||||
}
|
||||
|
||||
size *= 2;
|
||||
|
|
|
|||
|
|
@ -6109,11 +6109,8 @@ void LLPipeline::resetVertexBuffers()
|
|||
|
||||
gSky.resetVertexBuffers();
|
||||
|
||||
if (LLVertexBuffer::sGLCount > 0)
|
||||
{
|
||||
LLVertexBuffer::cleanupClass();
|
||||
}
|
||||
|
||||
LLVertexBuffer::cleanupClass();
|
||||
|
||||
//delete all name pool caches
|
||||
LLGLNamePool::cleanupPools();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue