From 02e418a5cdb109ea626ad7677ff223e464cc220a Mon Sep 17 00:00:00 2001 From: andreykproductengine Date: Tue, 14 Nov 2017 19:50:17 +0200 Subject: MAINT-7228 Dummy triangle should use map instead of offset (in case of VBO) --- indra/newview/llvoavatar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indra/newview/llvoavatar.cpp') diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 33ab188704..eae8f2cc56 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -2094,7 +2094,7 @@ void LLVOAvatar::updateMeshData() facep->setSize(1, 3); buff->allocateBuffer(1, 3, true); memset((U8*) buff->getMappedData(), 0, buff->getSize()); - memset((U8*) buff->getIndicesPointer(), 0, buff->getIndicesSize()); + memset((U8*) buff->getMappedIndices(), 0, buff->getIndicesSize()); } facep->setVertexBuffer(buff); } @@ -2114,7 +2114,7 @@ void LLVOAvatar::updateMeshData() facep->setSize(1, 3); buff->resizeBuffer(1, 3); memset((U8*) buff->getMappedData(), 0, buff->getSize()); - memset((U8*) buff->getIndicesPointer(), 0, buff->getIndicesSize()); + memset((U8*) buff->getMappedIndices(), 0, buff->getIndicesSize()); } } } -- cgit v1.2.3