summaryrefslogtreecommitdiff
path: root/indra/newview/llspatialpartition.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-01-18 14:49:38 -0600
committerDave Parks <davep@lindenlab.com>2011-01-18 14:49:38 -0600
commitebbaa00ed935a76c874cd08b9b35a8911287d080 (patch)
treea4b8cbfc4a98190f3bed3cb88376279ad71f3df2 /indra/newview/llspatialpartition.cpp
parenteec6071766e6fef7015610b002a9bcb09ce36836 (diff)
parentaeec987f565f916c9919f8cc861a82b4caab9a46 (diff)
merge
Diffstat (limited to 'indra/newview/llspatialpartition.cpp')
-rw-r--r--indra/newview/llspatialpartition.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llspatialpartition.cpp b/indra/newview/llspatialpartition.cpp
index efda39c806..b9063b3c81 100644
--- a/indra/newview/llspatialpartition.cpp
+++ b/indra/newview/llspatialpartition.cpp
@@ -2465,7 +2465,6 @@ void renderOctree(LLSpatialGroup* group)
{
//render solid object bounding box, color
//coded by buffer usage and activity
- LLGLDepthTest depth(GL_TRUE, GL_FALSE);
gGL.setSceneBlendType(LLRender::BT_ADD_WITH_ALPHA);
LLVector4 col;
if (group->mBuilt > 0.f)
@@ -2557,7 +2556,10 @@ void renderOctree(LLSpatialGroup* group)
size.mul(1.01f);
size.add(fudge);
- drawBox(group->mObjectBounds[0], fudge);
+ {
+ LLGLDepthTest depth(GL_TRUE, GL_FALSE);
+ drawBox(group->mObjectBounds[0], fudge);
+ }
gGL.setSceneBlendType(LLRender::BT_ALPHA);