summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorMnikolenko ProductEngine <mnikolenko@productengine.com>2022-06-08 03:15:59 +0300
committerMnikolenko ProductEngine <mnikolenko@productengine.com>2022-06-08 03:15:59 +0300
commit76c8a7ff0b57e7856613960391be7c400384183b (patch)
tree7251ea332935201aa63cce3523d373295e485f56 /indra/newview
parentba9bff5b9bdd7904916c3ae844840c87376498c3 (diff)
SL-17541 show the message on mac
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llfloaterperformance.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llfloaterperformance.cpp b/indra/newview/llfloaterperformance.cpp
index ecacadee3e..0ef9ab3215 100644
--- a/indra/newview/llfloaterperformance.cpp
+++ b/indra/newview/llfloaterperformance.cpp
@@ -416,7 +416,8 @@ void LLFloaterPerformance::setFPSText()
std::string fps_text = getString("fps_text");
static LLCachedControl<bool> vsync_enabled(gSavedSettings, "RenderVSyncEnable", true);
- if (vsync_enabled && (current_fps >= gViewerWindow->getWindow()->getRefreshRate()))
+ S32 refresh_rate = gViewerWindow->getWindow()->getRefreshRate();
+ if (vsync_enabled && (refresh_rate > 0) && (current_fps >= refresh_rate))
{
fps_text += getString("max_text");
}