summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2010-06-07 13:43:30 -0500
committerDave Parks <davep@lindenlab.com>2010-06-07 13:43:30 -0500
commit84e619a6dc9e5a5967c4ce035ac530a4588f72a5 (patch)
treeebef76d120983dbbcf1a9d50eb6d21a910f1b5b5
parent9faf00b40f43a7c18afecc4b0f90070e15f8409b (diff)
Fix for bad shadow frustum calculation.
-rw-r--r--indra/newview/llspatialpartition.cpp2
-rw-r--r--indra/newview/pipeline.cpp4
2 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llspatialpartition.cpp b/indra/newview/llspatialpartition.cpp
index d0e3a1428f..bda59f49d1 100644
--- a/indra/newview/llspatialpartition.cpp
+++ b/indra/newview/llspatialpartition.cpp
@@ -2195,7 +2195,7 @@ BOOL LLSpatialPartition::getVisibleExtents(LLCamera& camera, LLVector3& visMin,
vis.traverse(mOctree);
visMin.set(visMina.getF32());
- visMax.set(visMina.getF32());
+ visMax.set(visMaxa.getF32());
return vis.mEmpty;
}
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index 01027e5be6..dcf9f52f25 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -3883,6 +3883,8 @@ void LLPipeline::renderDebug()
if (hasRenderDebugMask(LLPipeline::RENDER_DEBUG_SHADOW_FRUSTA))
{
+ LLVertexBuffer::unbind();
+
LLGLEnable blend(GL_BLEND);
LLGLDepthTest depth(TRUE, FALSE);
LLGLDisable cull(GL_CULL_FACE);
@@ -3946,7 +3948,7 @@ void LLPipeline::renderDebug()
if (i < 4)
{
- if (i == 0 || !mShadowFrustPoints[i].empty())
+ //if (i == 0 || !mShadowFrustPoints[i].empty())
{
//render visible point cloud
gGL.flush();