summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorPaul ProductEngine <pguslisty@productengine.com>2012-05-04 20:21:54 +0300
committerPaul ProductEngine <pguslisty@productengine.com>2012-05-04 20:21:54 +0300
commit68ec4d8355326f7c42c8e6fbabe774df6e5f41dd (patch)
treeec176862c5f02a2d09cde3286be9ccbbcb1365a6 /indra/newview
parentfe2e27ffc9031c2af02176e3b2d90edc7cb04ad4 (diff)
Linux build fix.
GCC doesn't allow to init non-constant references with temporary objects
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llvopartgroup.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/indra/newview/llvopartgroup.cpp b/indra/newview/llvopartgroup.cpp
index 42b35ff7a7..49356467a0 100644
--- a/indra/newview/llvopartgroup.cpp
+++ b/indra/newview/llvopartgroup.cpp
@@ -619,12 +619,13 @@ void LLParticlePartition::getGeometry(LLSpatialGroup* group)
S32 geom_idx = (S32) facep->getGeomIndex();
- object->getGeometry(facep->getTEOffset(),
- verticesp+geom_idx,
- normalsp+geom_idx,
- texcoordsp+geom_idx,
- colorsp+geom_idx,
- indicesp+facep->getIndicesStart());
+ verticesp += geom_idx;
+ normalsp += geom_idx;
+ texcoordsp += geom_idx;
+ colorsp += geom_idx;
+ indicesp += facep->getIndicesStart();
+
+ object->getGeometry(facep->getTEOffset(), verticesp, normalsp, texcoordsp, colorsp, indicesp);
llassert(facep->getGeomCount() == 4);
llassert(facep->getIndicesCount() == 6);