summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2017-11-03 19:27:09 +0200
committerandreykproductengine <andreykproductengine@lindenlab.com>2017-11-03 19:27:09 +0200
commite848127f232ee902bb7b6b9be5a6aedb68180cac (patch)
tree369fa2070df8f887d95ee21418849b5e94996923
parent149b2d88dd75bddf1cb3e9927c4e8fcc84e263e1 (diff)
MAINT-7228 Substituted assert with error
-rw-r--r--indra/llrender/llvertexbuffer.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/llrender/llvertexbuffer.cpp b/indra/llrender/llvertexbuffer.cpp
index d4dfb373f0..6de2a973d2 100644
--- a/indra/llrender/llvertexbuffer.cpp
+++ b/indra/llrender/llvertexbuffer.cpp
@@ -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