summaryrefslogtreecommitdiff
path: root/indra/newview/llsprite.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-05-12 17:39:08 -0500
committerDave Parks <davep@lindenlab.com>2011-05-12 17:39:08 -0500
commit93696ac019865898d35d37d1e32d7a4b819a0c93 (patch)
treeafac704c0d5ad56c0bc2ed603e6f0bb15f525431 /indra/newview/llsprite.cpp
parent6fcf9e4817a5c245f7779dd030b0ba75dab10e5e (diff)
parent4911586023144bd10d6a91f3f1be1e65af0c706d (diff)
merge
Diffstat (limited to 'indra/newview/llsprite.cpp')
-rw-r--r--indra/newview/llsprite.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/indra/newview/llsprite.cpp b/indra/newview/llsprite.cpp
index a69592b61c..4bde2dfcab 100644
--- a/indra/newview/llsprite.cpp
+++ b/indra/newview/llsprite.cpp
@@ -186,14 +186,15 @@ void LLSprite::updateFace(LLFace &face)
U16 index_offset;
// Setup face
- if (face.mVertexBuffer.isNull())
+ if (!face.getVertexBuffer())
{
- face.mVertexBuffer = new LLVertexBuffer(LLVertexBuffer::MAP_VERTEX |
+ LLVertexBuffer* buff = new LLVertexBuffer(LLVertexBuffer::MAP_VERTEX |
LLVertexBuffer::MAP_TEXCOORD0,
GL_STREAM_DRAW_ARB);
- face.mVertexBuffer->allocateBuffer(4, 12, TRUE);
+ buff->allocateBuffer(4, 12, TRUE);
face.setGeomIndex(0);
face.setIndicesIndex(0);
+ face.setVertexBuffer(buff);
}
index_offset = face.getGeometry(verticesp,normalsp,tex_coordsp, indicesp);
@@ -242,7 +243,7 @@ void LLSprite::updateFace(LLFace &face)
*indicesp++ = 3 + index_offset;
}
- face.mVertexBuffer->setBuffer(0);
+ face.getVertexBuffer()->setBuffer(0);
face.mCenterAgent = mPosition;
}