diff options
| author | andreykproductengine <andreykproductengine@lindenlab.com> | 2018-01-04 19:52:42 +0200 | 
|---|---|---|
| committer | andreykproductengine <andreykproductengine@lindenlab.com> | 2018-01-04 19:52:42 +0200 | 
| commit | 0daaf96436d4f597efe882e4c8978d5ffe1ebfc3 (patch) | |
| tree | 26ea4557ff5806704c0f5a092091d2f452d83a3d | |
| parent | 7de6475a0a61dcd79bd8b11519c01efba953293d (diff) | |
MAINT-8107 Fixed Framerate drops when facing away from objects
Don't clear buffers if they are already free
| -rw-r--r-- | indra/newview/llvovolume.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index f77b48ff80..7b4d8ef329 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -628,7 +628,7 @@ void LLVOVolume::updateTextures()  		if (mDrawable.notNull() && !isVisible() && !mDrawable->isActive())  		{ //delete vertex buffer to free up some VRAM  			LLSpatialGroup* group  = mDrawable->getSpatialGroup(); -			if (group) +			if (group && (group->mVertexBuffer.notNull() || !group->mBufferMap.empty() || !group->mDrawMap.empty()))  			{  				group->destroyGL(true); | 
