summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-10-24 19:46:09 -0600
committerXiaohong Bao <bao@lindenlab.com>2013-10-24 19:46:09 -0600
commitd98b6a932deb3125422c5b544aced9d05ff8f89f (patch)
tree45593b194f4ccf96aa2e6a540f575ffbfb7d83ad /indra
parent066182bf064d74c84313220dba3a10a3c318d634 (diff)
fix a flaw LLViewerOctreeEntry::mVisible not initialized.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llvieweroctree.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llvieweroctree.cpp b/indra/newview/llvieweroctree.cpp
index ef802f2651..3646133e91 100644
--- a/indra/newview/llvieweroctree.cpp
+++ b/indra/newview/llvieweroctree.cpp
@@ -36,7 +36,7 @@
//-----------------------------------------------------------------------------------
//static variables definitions
//-----------------------------------------------------------------------------------
-U32 LLViewerOctreeEntryData::sCurVisible = 0;
+U32 LLViewerOctreeEntryData::sCurVisible = 10; //reserve the low numbers for special use.
BOOL LLViewerOctreeDebug::sInDebug = FALSE;
static LLTrace::CountStatHandle<S32> sOcclusionQueries("occlusion_queries", "Number of occlusion queries executed"),
@@ -234,7 +234,8 @@ LLViewerOctreeEntry::LLViewerOctreeEntry()
: LLTrace::MemTrackable<LLViewerOctreeEntry, 16>("LLViewerOctreeEntry"),
mGroup(NULL),
mBinRadius(0.f),
- mBinIndex(-1)
+ mBinIndex(-1),
+ mVisible(0)
{
mPositionGroup.clear();
mExtents[0].clear();