summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2017-12-18 15:15:54 +0200
committerandreykproductengine <andreykproductengine@lindenlab.com>2017-12-18 15:15:54 +0200
commit1f56b223d74ada38e287f034f21b71e2e4dbb1e5 (patch)
tree3798755dba267c7803a3c8d9a2a59169027ec021 /indra
parent5b60199bb08b70dde89bade04c1cb00a3361945e (diff)
MAINT-8101 Added sanity check to confirm crash location
Diffstat (limited to 'indra')
-rw-r--r--indra/llrender/llvertexbuffer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/llrender/llvertexbuffer.cpp b/indra/llrender/llvertexbuffer.cpp
index 2761a90566..35c771b61b 100644
--- a/indra/llrender/llvertexbuffer.cpp
+++ b/indra/llrender/llvertexbuffer.cpp
@@ -1057,10 +1057,12 @@ LLVertexBuffer::~LLVertexBuffer()
if (mFence)
{
+ // Sanity check. We have weird crashes in this destructor (on delete). Yet mFence is disabled.
+ // TODO: mFence was added in scope of SH-2038, but was never enabled, consider removing mFence.
+ LL_ERRS() << "LLVertexBuffer destruction failed" << LL_ENDL;
delete mFence;
+ mFence = NULL;
}
-
- mFence = NULL;
sVertexCount -= mNumVerts;
sIndexCount -= mNumIndices;