aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvosurfacepatch.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:37 -0500
committerJacek Antonelli2008-08-15 23:45:37 -0500
commit31ba05810c641f14e8ab5da8ad2aaf527779f6c1 (patch)
treec4b8d635dfb657fa4cfee7c285f8cadbf24afa90 /linden/indra/newview/llvosurfacepatch.cpp
parentSecond Life viewer sources 1.19.1.1 (diff)
downloadmeta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.zip
meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.gz
meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.bz2
meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.xz
Second Life viewer sources 1.19.1.2
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llvosurfacepatch.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/newview/llvosurfacepatch.cpp b/linden/indra/newview/llvosurfacepatch.cpp
index 3665ec7..c0474f2 100644
--- a/linden/indra/newview/llvosurfacepatch.cpp
+++ b/linden/indra/newview/llvosurfacepatch.cpp
@@ -920,7 +920,7 @@ void LLVOSurfacePatch::updateSpatialExtents(LLVector3& newMin, LLVector3 &newMax
920{ 920{
921 LLVector3 posAgent = getPositionAgent(); 921 LLVector3 posAgent = getPositionAgent();
922 LLVector3 scale = getScale(); 922 LLVector3 scale = getScale();
923 newMin = posAgent-scale*0.5f; 923 newMin = posAgent-scale*0.5f; // Changing to 2.f makes the culling a -little- better, but still wrong
924 newMax = posAgent+scale*0.5f; 924 newMax = posAgent+scale*0.5f;
925 mDrawable->setPositionGroup((newMin+newMax)*0.5f); 925 mDrawable->setPositionGroup((newMin+newMax)*0.5f);
926} 926}
@@ -935,7 +935,7 @@ LLTerrainPartition::LLTerrainPartition()
935{ 935{
936 mOcclusionEnabled = FALSE; 936 mOcclusionEnabled = FALSE;
937 mRenderByGroup = FALSE; 937 mRenderByGroup = FALSE;
938 mInfiniteFarClip = FALSE; 938 mInfiniteFarClip = TRUE;
939 mBufferUsage = GL_DYNAMIC_DRAW_ARB; 939 mBufferUsage = GL_DYNAMIC_DRAW_ARB;
940 mDrawableType = LLPipeline::RENDER_TYPE_TERRAIN; 940 mDrawableType = LLPipeline::RENDER_TYPE_TERRAIN;
941 mPartitionType = LLViewerRegion::PARTITION_TERRAIN; 941 mPartitionType = LLViewerRegion::PARTITION_TERRAIN;