From 84e619a6dc9e5a5967c4ce035ac530a4588f72a5 Mon Sep 17 00:00:00 2001 From: Dave Parks Date: Mon, 7 Jun 2010 13:43:30 -0500 Subject: Fix for bad shadow frustum calculation. --- indra/newview/llspatialpartition.cpp | 2 +- indra/newview/pipeline.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'indra') 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(); -- cgit v1.2.3