MAINT-8101 Added sanity check to confirm crash location

master
andreykproductengine 2017-12-18 15:15:54 +02:00
parent 5b60199bb0
commit 1f56b223d7
1 changed files with 4 additions and 2 deletions

View File

@ -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;