MAINT-7228 Substituted assert with error

meow-7.2.2
andreykproductengine 2017-11-03 19:27:09 +02:00
parent 149b2d88dd
commit e848127f23
1 changed files with 8 additions and 1 deletions

View File

@ -1065,7 +1065,14 @@ LLVertexBuffer::~LLVertexBuffer()
sVertexCount -= mNumVerts;
sIndexCount -= mNumIndices;
llassert_always(!mMappedData && !mMappedIndexData);
if (mMappedData)
{
LL_ERRS() << "Failed to clear vertex buffer's vertices" << LL_ENDL;
}
if (mMappedIndexData)
{
LL_ERRS() << "Failed to clear vertex buffer's indices" << LL_ENDL;
}
};
void LLVertexBuffer::placeFence() const