summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2018-01-12 18:54:20 +0200
committerandreykproductengine <andreykproductengine@lindenlab.com>2018-01-12 18:54:20 +0200
commit56c878925af77324e2e85db2203cc82b86693664 (patch)
treeab0a89e2f068d5733f393ef3980d18cd149fb0c9 /indra
parentae95759bcf70e900d822bc8a80f3eda36de2bdf7 (diff)
MAINT-7003 Crash in LLVBOPool
Error to help figuring out if error happens due to gl or memory issue
Diffstat (limited to 'indra')
-rw-r--r--indra/llrender/llvertexbuffer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llrender/llvertexbuffer.cpp b/indra/llrender/llvertexbuffer.cpp
index 35c771b61b..1ca42039a3 100644
--- a/indra/llrender/llvertexbuffer.cpp
+++ b/indra/llrender/llvertexbuffer.cpp
@@ -191,6 +191,10 @@ volatile U8* LLVBOPool::allocate(U32& name, U32 size, bool for_seed)
if (mUsage != GL_DYNAMIC_COPY_ARB)
{ //data will be provided by application
ret = (U8*) ll_aligned_malloc<64>(size);
+ if (!ret)
+ {
+ LL_ERRS() << "Failed to allocate for LLVBOPool buffer" << LL_ENDL;
+ }
}
}
else