From b1d608ee99824fde13f3f16e0947ec5b54299fca Mon Sep 17 00:00:00 2001 From: Graham Madarasz <graham@lindenlab.com> Date: Thu, 25 Apr 2013 10:38:35 -0700 Subject: [PATCH] Diagnostic message for debugging adv lighting enable fail on MB Air 2k11 --- indra/newview/llfloaterpreference.cpp | 9 +++++++++ indra/newview/llpanelface.cpp | 1 + 2 files changed, 10 insertions(+) diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp index bbf88060c19..ecbb15969c5 100755 --- a/indra/newview/llfloaterpreference.cpp +++ b/indra/newview/llfloaterpreference.cpp @@ -1154,6 +1154,15 @@ void LLFloaterPreference::refreshEnabledState() gSavedSettings.getBOOL("RenderAvatarVP") && (ctrl_wind_light->get()) ? TRUE : FALSE; + if (!enabled) + { + llinfos << "LLFloaterPreference: NOT ENABLING DEFFERED....feature available? " + << (LLFeatureManager::getInstance()->isFeatureAvailable("RenderDeferred") ? "yup" : "nope") + << " shaders? " << (shaders ? "yup" : "nope") << " FBO? " << (gGLManager.mHasFramebufferObject ? "yup" : "nope") + << " renderAvVP? " << (gSavedSettings.getBOOL("RenderAvatarVP") ? "yup" : "nope") + << " windlight? " << ((ctrl_wind_light->get()) ? "yup" : "nope") << llendl; + } + ctrl_deferred->setEnabled(enabled); LLCheckBoxCtrl* ctrl_ssao = getChild<LLCheckBoxCtrl>("UseSSAO"); diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp index 2d2a0d6d0c6..6b50a97e8d3 100644 --- a/indra/newview/llpanelface.cpp +++ b/indra/newview/llpanelface.cpp @@ -1878,6 +1878,7 @@ void LLPanelFace::updateMaterial() material_to_set = new LLMaterial(*mMaterial); } } + LLSelectMgr::getInstance()->selectionSetMaterial( material_to_set ); } else -- GitLab