summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2018-01-04 19:52:42 +0200
committerandreykproductengine <andreykproductengine@lindenlab.com>2018-01-04 19:52:42 +0200
commit0daaf96436d4f597efe882e4c8978d5ffe1ebfc3 (patch)
tree26ea4557ff5806704c0f5a092091d2f452d83a3d /indra/newview
parent7de6475a0a61dcd79bd8b11519c01efba953293d (diff)
MAINT-8107 Fixed Framerate drops when facing away from objects
Don't clear buffers if they are already free
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llvovolume.cpp2
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);