diff options
author | Jacek Antonelli | 2008-08-15 23:44:56 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:56 -0500 |
commit | c07901e29ed545bbb02e3bddf148fe1104b94e9f (patch) | |
tree | f1ada64ce834acd7d92a425efb96c4b86bcf16b1 /linden/indra/newview/llviewerwindow.cpp | |
parent | Second Life viewer sources 1.15.0.2 (diff) | |
download | meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.zip meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.gz meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.bz2 meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.xz |
Second Life viewer sources 1.15.1.3
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewerwindow.cpp | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/linden/indra/newview/llviewerwindow.cpp b/linden/indra/newview/llviewerwindow.cpp index 9498dbd..c57c84a 100644 --- a/linden/indra/newview/llviewerwindow.cpp +++ b/linden/indra/newview/llviewerwindow.cpp | |||
@@ -1504,27 +1504,8 @@ LLViewerWindow::LLViewerWindow( | |||
1504 | // stuff like AGP if we think that it'll crash the viewer. | 1504 | // stuff like AGP if we think that it'll crash the viewer. |
1505 | // | 1505 | // |
1506 | gFeatureManagerp->initGraphicsFeatureMasks(); | 1506 | gFeatureManagerp->initGraphicsFeatureMasks(); |
1507 | |||
1508 | // The ATI Mobility Radeon with 1.15.0 causes crashes in FMOD on startup for | ||
1509 | // unknown reasons, but only if you have an old settings.ini file. | ||
1510 | // In this case, force the graphics settings back to recommended, but only | ||
1511 | // do it once. JC | ||
1512 | std::string gpu_string = gFeatureManagerp->getGPUString(); | ||
1513 | LLString::toLower(gpu_string); | ||
1514 | bool upgrade_to_1_15 = (gSavedSettings.getString("LastRunVersion") != "1.15.0"); | ||
1515 | bool mobility_radeon = (gpu_string.find("mobility radeon") != std::string::npos); | ||
1516 | bool mobility_radeon_upgrade_hack = upgrade_to_1_15 && mobility_radeon; | ||
1517 | if (mobility_radeon_upgrade_hack) | ||
1518 | { | ||
1519 | llinfos << "1.15.0 update on Mobility Radeon" << llendl; | ||
1520 | llinfos << "Forcing recommended graphics settings" << llendl; | ||
1521 | llinfos << "Forcing audio off" << llendl; | ||
1522 | gUseAudio = FALSE; | ||
1523 | } | ||
1524 | |||
1525 | if (gFeatureManagerp->isSafe() | 1507 | if (gFeatureManagerp->isSafe() |
1526 | || (gSavedSettings.getS32("LastFeatureVersion") != gFeatureManagerp->getVersion()) | 1508 | || (gSavedSettings.getS32("LastFeatureVersion") != gFeatureManagerp->getVersion())) |
1527 | || mobility_radeon_upgrade_hack) | ||
1528 | { | 1509 | { |
1529 | gFeatureManagerp->applyRecommendedFeatures(); | 1510 | gFeatureManagerp->applyRecommendedFeatures(); |
1530 | } | 1511 | } |
@@ -1747,7 +1728,7 @@ void LLViewerWindow::initBase() | |||
1747 | mToolTip->setBorderVisible( FALSE ); | 1728 | mToolTip->setBorderVisible( FALSE ); |
1748 | mToolTip->setBackgroundColor( gColors.getColor( "ToolTipBgColor" ) ); | 1729 | mToolTip->setBackgroundColor( gColors.getColor( "ToolTipBgColor" ) ); |
1749 | mToolTip->setBackgroundVisible( TRUE ); | 1730 | mToolTip->setBackgroundVisible( TRUE ); |
1750 | mToolTip->setDropshadowVisible( FALSE ); | 1731 | mToolTip->setFontStyle(LLFontGL::NORMAL); |
1751 | mToolTip->setBorderDropshadowVisible( TRUE ); | 1732 | mToolTip->setBorderDropshadowVisible( TRUE ); |
1752 | mToolTip->setVisible( FALSE ); | 1733 | mToolTip->setVisible( FALSE ); |
1753 | 1734 | ||