aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvograss.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llvograss.cpp
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llvograss.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/linden/indra/newview/llvograss.cpp b/linden/indra/newview/llvograss.cpp
index 3b6b837..f9b4bc0 100644
--- a/linden/indra/newview/llvograss.cpp
+++ b/linden/indra/newview/llvograss.cpp
@@ -48,6 +48,7 @@
48#include "llviewerimagelist.h" 48#include "llviewerimagelist.h"
49#include "llviewerregion.h" 49#include "llviewerregion.h"
50#include "pipeline.h" 50#include "pipeline.h"
51#include "llspatialpartition.h"
51#include "llworld.h" 52#include "llworld.h"
52#include "lldir.h" 53#include "lldir.h"
53#include "llxmltree.h" 54#include "llxmltree.h"
@@ -400,6 +401,7 @@ LLDrawable* LLVOGrass::createDrawable(LLPipeline *pipeline)
400BOOL LLVOGrass::updateGeometry(LLDrawable *drawable) 401BOOL LLVOGrass::updateGeometry(LLDrawable *drawable)
401{ 402{
402 LLFastTimer ftm(LLFastTimer::FTM_UPDATE_GRASS); 403 LLFastTimer ftm(LLFastTimer::FTM_UPDATE_GRASS);
404 dirtySpatialGroup();
403 plantBlades(); 405 plantBlades();
404 return TRUE; 406 return TRUE;
405} 407}
@@ -439,7 +441,7 @@ void LLVOGrass::getGeometry(S32 idx,
439 LLStrider<LLVector3>& normalsp, 441 LLStrider<LLVector3>& normalsp,
440 LLStrider<LLVector2>& texcoordsp, 442 LLStrider<LLVector2>& texcoordsp,
441 LLStrider<LLColor4U>& colorsp, 443 LLStrider<LLColor4U>& colorsp,
442 LLStrider<U32>& indicesp) 444 LLStrider<U16>& indicesp)
443{ 445{
444 mPatch = mRegionp->getLand().resolvePatchRegion(getPositionRegion()); 446 mPatch = mRegionp->getLand().resolvePatchRegion(getPositionRegion());
445 if (mPatch) 447 if (mPatch)
@@ -552,13 +554,13 @@ void LLVOGrass::getGeometry(S32 idx,
552 554
553U32 LLVOGrass::getPartitionType() const 555U32 LLVOGrass::getPartitionType() const
554{ 556{
555 return LLPipeline::PARTITION_GRASS; 557 return LLViewerRegion::PARTITION_GRASS;
556} 558}
557 559
558LLGrassPartition::LLGrassPartition() 560LLGrassPartition::LLGrassPartition()
559{ 561{
560 mDrawableType = LLPipeline::RENDER_TYPE_GRASS; 562 mDrawableType = LLPipeline::RENDER_TYPE_GRASS;
561 mPartitionType = LLPipeline::PARTITION_GRASS; 563 mPartitionType = LLViewerRegion::PARTITION_GRASS;
562 mLODPeriod = 16; 564 mLODPeriod = 16;
563 mDepthMask = TRUE; 565 mDepthMask = TRUE;
564 mSlopRatio = 0.1f; 566 mSlopRatio = 0.1f;