summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-07-31 21:43:42 -0600
committerXiaohong Bao <bao@lindenlab.com>2013-07-31 21:43:42 -0600
commit3059b59b619123caf5cc3137ab0b983c28a2962b (patch)
treedafc3dc293fa5ef09055fabb02f5876eb8c72865
parentbd5808765f7a74226d312afbb863c471528b8d1a (diff)
parent484f4230149e82345eccb38f9d4655b2a3f59984 (diff)
Automated merge with http://bitbucket.org/lindenlab/viewer-interesting
-rw-r--r--indra/newview/llscenemonitor.cpp17
-rwxr-xr-xindra/newview/llviewerregion.cpp10
2 files changed, 22 insertions, 5 deletions
diff --git a/indra/newview/llscenemonitor.cpp b/indra/newview/llscenemonitor.cpp
index 7fdee2b2ad..f0c7a220a4 100644
--- a/indra/newview/llscenemonitor.cpp
+++ b/indra/newview/llscenemonitor.cpp
@@ -211,11 +211,19 @@ LLRenderTarget& LLSceneMonitor::getCaptureTarget()
void LLSceneMonitor::freezeAvatar(LLCharacter* avatarp)
{
- mAvatarPauseHandles.push_back(avatarp->requestPause());
+ if(mEnabled)
+ {
+ mAvatarPauseHandles.push_back(avatarp->requestPause());
+ }
}
void LLSceneMonitor::freezeScene()
{
+ if(!mEnabled)
+ {
+ return;
+ }
+
//freeze all avatars
for (std::vector<LLCharacter*>::iterator iter = LLCharacter::sInstances.begin();
iter != LLCharacter::sInstances.end(); ++iter)
@@ -262,7 +270,7 @@ void LLSceneMonitor::capture()
static LLCachedControl<F32> scene_load_sample_time(gSavedSettings, "SceneLoadingMonitorSampleTime");
static bool force_capture = true;
- bool enabled = monitor_enabled || mDebugViewerVisible;
+ bool enabled = LLGLSLShader::sNoFixedFunction && (monitor_enabled || mDebugViewerVisible);
if(mEnabled != enabled)
{
if(mEnabled)
@@ -288,10 +296,9 @@ void LLSceneMonitor::capture()
force_capture = true;
}
- if((mRecordingTimer.getElapsedTimeF32() > scene_load_sample_time()
+ if(mEnabled
+ && (mRecordingTimer.getElapsedTimeF32() > scene_load_sample_time()
|| force_capture)
- && mEnabled
- && LLGLSLShader::sNoFixedFunction
&& last_capture_frame != gFrameCount)
{
force_capture = false;
diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp
index e28ea6f988..c55ccce47a 100755
--- a/indra/newview/llviewerregion.cpp
+++ b/indra/newview/llviewerregion.cpp
@@ -1303,6 +1303,16 @@ void LLViewerRegion::killObject(LLVOCacheEntry* entry, std::vector<LLDrawable*>&
LLViewerObject* LLViewerRegion::addNewObject(LLVOCacheEntry* entry)
{
+ if(!entry || !entry->getEntry())
+ {
+ if(entry)
+ {
+ mImpl->mVisibleEntries.erase(entry);
+ entry->setState(LLVOCacheEntry::INACTIVE);
+ }
+ return NULL;
+ }
+
LLViewerObject* obj = NULL;
if(!entry->getEntry()->hasDrawable()) //not added to the rendering pipeline yet
{