diff options
author | andreykproductengine <andreykproductengine@lindenlab.com> | 2018-01-12 18:54:20 +0200 |
---|---|---|
committer | andreykproductengine <andreykproductengine@lindenlab.com> | 2018-01-12 18:54:20 +0200 |
commit | 56c878925af77324e2e85db2203cc82b86693664 (patch) | |
tree | ab0a89e2f068d5733f393ef3980d18cd149fb0c9 /indra | |
parent | ae95759bcf70e900d822bc8a80f3eda36de2bdf7 (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.cpp | 4 |
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 |