summaryrefslogtreecommitdiff
path: root/indra/newview/llvoground.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2017-11-29 23:40:12 +0000
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2017-11-29 23:40:12 +0000
commit5c7f27562dc1ef449f23be5ab747a19c23eec361 (patch)
tree658416eb1f85eaa96dbc9a4a9762b0029e520476 /indra/newview/llvoground.cpp
parent84b6bce4ee9299454aca75d8f876b6582b756ff6 (diff)
parent1693ccba58eef676df1f91e50627545ac35bb819 (diff)
merge
Diffstat (limited to 'indra/newview/llvoground.cpp')
-rw-r--r--indra/newview/llvoground.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llvoground.cpp b/indra/newview/llvoground.cpp
index c1273e684c..71a7623fb4 100644
--- a/indra/newview/llvoground.cpp
+++ b/indra/newview/llvoground.cpp
@@ -94,7 +94,12 @@ BOOL LLVOGround::updateGeometry(LLDrawable *drawable)
{
face->setSize(5, 12);
LLVertexBuffer* buff = new LLVertexBuffer(LLDrawPoolGround::VERTEX_DATA_MASK, GL_STREAM_DRAW_ARB);
- buff->allocateBuffer(face->getGeomCount(), face->getIndicesCount(), TRUE);
+ if (!buff->allocateBuffer(face->getGeomCount(), face->getIndicesCount(), TRUE))
+ {
+ LL_WARNS() << "Failed to allocate Vertex Buffer for VOGround to "
+ << face->getGeomCount() << " vertices and "
+ << face->getIndicesCount() << " indices" << LL_ENDL;
+ }
face->setGeomIndex(0);
face->setIndicesIndex(0);
face->setVertexBuffer(buff);