aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpaneldisplay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llpaneldisplay.cpp')
-rw-r--r--linden/indra/newview/llpaneldisplay.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/linden/indra/newview/llpaneldisplay.cpp b/linden/indra/newview/llpaneldisplay.cpp
index c4fa1dc..4a03900 100644
--- a/linden/indra/newview/llpaneldisplay.cpp
+++ b/linden/indra/newview/llpaneldisplay.cpp
@@ -322,7 +322,7 @@ void LLPanelDisplay::applyResolution()
322 // change fullscreen resolution or switch in/out of windowed mode 322 // change fullscreen resolution or switch in/out of windowed mode
323 BOOL result; 323 BOOL result;
324 324
325 BOOL logged_in = (gStartupState >= STATE_STARTED); 325 BOOL logged_in = (LLStartUp::getStartupState() >= STATE_STARTED);
326 if (fullscreen) 326 if (fullscreen)
327 { 327 {
328 result = gViewerWindow->changeDisplaySettings(TRUE, 328 result = gViewerWindow->changeDisplaySettings(TRUE,
@@ -526,7 +526,7 @@ void LLPanelDisplay2::apply()
526 LLImageGL::sGlobalUseAnisotropic = childGetValue("ani"); 526 LLImageGL::sGlobalUseAnisotropic = childGetValue("ani");
527 if (old_anisotropic != LLImageGL::sGlobalUseAnisotropic) 527 if (old_anisotropic != LLImageGL::sGlobalUseAnisotropic)
528 { 528 {
529 BOOL logged_in = (gStartupState >= STATE_STARTED); 529 BOOL logged_in = (LLStartUp::getStartupState() >= STATE_STARTED);
530 gViewerWindow->restartDisplay(logged_in); 530 gViewerWindow->restartDisplay(logged_in);
531 } 531 }
532 532
@@ -655,9 +655,13 @@ void LLPanelDisplay3::refresh()
655void LLPanelDisplay3::refreshEnabledState() 655void LLPanelDisplay3::refreshEnabledState()
656{ 656{
657 // Ripple Water 657 // Ripple Water
658 bool ripple = (LLShaderMgr::getMaxVertexShaderLevel(LLShaderMgr::SHADER_ENVIRONMENT) >= 2); 658 bool ripple = (LLShaderMgr::getMaxVertexShaderLevel(LLShaderMgr::SHADER_ENVIRONMENT) >= 2) && gGLManager.mHasCubeMap && gFeatureManagerp->isFeatureAvailable("RenderCubeMap");
659 mCtrlRippleWater->setEnabled(ripple ? TRUE : FALSE); 659 mCtrlRippleWater->setEnabled(ripple ? TRUE : FALSE);
660 660
661 // Bump & Shiny
662 bool bumpshiny = gGLManager.mHasCubeMap && gFeatureManagerp->isFeatureAvailable("RenderCubeMap") && gFeatureManagerp->isFeatureAvailable("RenderObjectBump");
663 mCtrlBumpShiny->setEnabled(bumpshiny ? TRUE : FALSE);
664
661 // Avatar Mode 665 // Avatar Mode
662 S32 max_avatar_shader = LLShaderMgr::getMaxVertexShaderLevel(LLShaderMgr::SHADER_AVATAR); 666 S32 max_avatar_shader = LLShaderMgr::getMaxVertexShaderLevel(LLShaderMgr::SHADER_AVATAR);
663 mCtrlAvatarVP->setEnabled((max_avatar_shader > 0) ? TRUE : FALSE); 667 mCtrlAvatarVP->setEnabled((max_avatar_shader > 0) ? TRUE : FALSE);