summaryrefslogtreecommitdiff
path: root/indra/newview/llscenemonitor.cpp
diff options
context:
space:
mode:
authorAura Linden <aura@lindenlab.com>2014-09-18 17:00:23 -0700
committerAura Linden <aura@lindenlab.com>2014-09-18 17:00:23 -0700
commit951c83724d7e364ac52cbee2d657711fda7d2c26 (patch)
tree20b95debd0a3bb52f32df0db52d6dc91caf5793f /indra/newview/llscenemonitor.cpp
parent78304e398fa7d4604eac98247173b33d712ec135 (diff)
parent61fb8c3fe31c73ce9121daac545aa7c8fc79ec8c (diff)
Merged in viewer-tiger
Diffstat (limited to 'indra/newview/llscenemonitor.cpp')
-rw-r--r--indra/newview/llscenemonitor.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/indra/newview/llscenemonitor.cpp b/indra/newview/llscenemonitor.cpp
index 7f705e44d2..179a73413e 100644
--- a/indra/newview/llscenemonitor.cpp
+++ b/indra/newview/llscenemonitor.cpp
@@ -709,9 +709,20 @@ void LLSceneMonitorView::onClose(bool app_quitting)
setVisible(false);
}
+void LLSceneMonitorView::onClickCloseBtn(bool app_quitting)
+{
+ setVisible(false);
+}
+
void LLSceneMonitorView::onVisibilityChange(BOOL visible)
{
- visible = visible && LLGLSLShader::sNoFixedFunction;
+ if (!LLGLSLShader::sNoFixedFunction && visible)
+ {
+ visible = false;
+ // keep Scene monitor and its view in sycn
+ setVisible(false);
+ LL_WARNS("SceneMonitor") << "Incompatible graphical settings, Scene Monitor can't be turned on" << LL_ENDL;
+ }
LLSceneMonitor::getInstance()->setDebugViewerVisible(visible);
}