aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvosurfacepatch.cpp
diff options
context:
space:
mode:
authorRobin Cornelius2010-10-10 22:10:33 +0100
committerRobin Cornelius2010-10-10 22:10:33 +0100
commitb3b30285126289f54b57bd42569bb0721e40e088 (patch)
treef4aaccb98d1a835c4ea376ec2803fc410a704052 /linden/indra/newview/llvosurfacepatch.cpp
parentMerge branch 'mccabe-plugins' into plugins_merge (diff)
downloadmeta-impy-b3b30285126289f54b57bd42569bb0721e40e088.zip
meta-impy-b3b30285126289f54b57bd42569bb0721e40e088.tar.gz
meta-impy-b3b30285126289f54b57bd42569bb0721e40e088.tar.bz2
meta-impy-b3b30285126289f54b57bd42569bb0721e40e088.tar.xz
Revert "port of LL renderpipeline/Kirstens S19 pipeline for bridging to Viewer 2 texture system"
This reverts commit 087e15e89930d51c3964329befb273ae3b2d330d. Conflicts: linden/indra/newview/llsurface.cpp linden/indra/newview/llviewerwindow.cpp linden/indra/newview/llvoavatar.cpp linden/indra/newview/pipeline.cpp linden/indra/newview/pipeline.h
Diffstat (limited to 'linden/indra/newview/llvosurfacepatch.cpp')
-rw-r--r--linden/indra/newview/llvosurfacepatch.cpp18
1 files changed, 5 insertions, 13 deletions
diff --git a/linden/indra/newview/llvosurfacepatch.cpp b/linden/indra/newview/llvosurfacepatch.cpp
index 7aa5739..1671880 100644
--- a/linden/indra/newview/llvosurfacepatch.cpp
+++ b/linden/indra/newview/llvosurfacepatch.cpp
@@ -134,7 +134,7 @@ void LLVOSurfacePatch::setPixelAreaAndAngle(LLAgent &agent)
134} 134}
135 135
136 136
137void LLVOSurfacePatch::updateTextures(LLAgent &agent) 137void LLVOSurfacePatch::updateTextures()
138{ 138{
139} 139}
140 140
@@ -177,19 +177,11 @@ LLDrawable *LLVOSurfacePatch::createDrawable(LLPipeline *pipeline)
177} 177}
178 178
179 179
180void LLVOSurfacePatch::updateGL()
181{
182 if (mPatchp)
183 {
184 mPatchp->updateGL();
185 }
186}
187
188BOOL LLVOSurfacePatch::updateGeometry(LLDrawable *drawable) 180BOOL LLVOSurfacePatch::updateGeometry(LLDrawable *drawable)
189{ 181{
190 LLFastTimer ftm(LLFastTimer::FTM_UPDATE_TERRAIN); 182 LLFastTimer ftm(LLFastTimer::FTM_UPDATE_TERRAIN);
191 183
192 dirtySpatialGroup(TRUE); 184 dirtySpatialGroup();
193 185
194 S32 min_comp, max_comp, range; 186 S32 min_comp, max_comp, range;
195 min_comp = lltrunc(mPatchp->getMinComposition()); 187 min_comp = lltrunc(mPatchp->getMinComposition());
@@ -1021,12 +1013,12 @@ U32 LLVOSurfacePatch::getPartitionType() const
1021} 1013}
1022 1014
1023LLTerrainPartition::LLTerrainPartition() 1015LLTerrainPartition::LLTerrainPartition()
1024: LLSpatialPartition(LLDrawPoolTerrain::VERTEX_DATA_MASK, FALSE, GL_DYNAMIC_DRAW_ARB) 1016: LLSpatialPartition(LLDrawPoolTerrain::VERTEX_DATA_MASK)
1025{ 1017{
1026 mOcclusionEnabled = FALSE; 1018 mOcclusionEnabled = FALSE;
1027 //mRenderByGroup = FALSE; // KL not for SD hybrid code 1019 mRenderByGroup = FALSE;
1028 mInfiniteFarClip = TRUE; 1020 mInfiniteFarClip = TRUE;
1029 //mBufferUsage = GL_DYNAMIC_DRAW_ARB; // and here too! 1021 mBufferUsage = GL_DYNAMIC_DRAW_ARB;
1030 mDrawableType = LLPipeline::RENDER_TYPE_TERRAIN; 1022 mDrawableType = LLPipeline::RENDER_TYPE_TERRAIN;
1031 mPartitionType = LLViewerRegion::PARTITION_TERRAIN; 1023 mPartitionType = LLViewerRegion::PARTITION_TERRAIN;
1032} 1024}