summaryrefslogtreecommitdiff
path: root/indra/llwindow/llwindowmacosx.cpp
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/llwindow/llwindowmacosx.cpp
parentba9bff5b9bdd7904916c3ae844840c87376498c3 (diff)
SL-17541 show the message on mac
Diffstat (limited to 'indra/llwindow/llwindowmacosx.cpp')
-rw-r--r--indra/llwindow/llwindowmacosx.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llwindow/llwindowmacosx.cpp b/indra/llwindow/llwindowmacosx.cpp
index bc4f07941b..b3616e4ea8 100644
--- a/indra/llwindow/llwindowmacosx.cpp
+++ b/indra/llwindow/llwindowmacosx.cpp
@@ -660,6 +660,8 @@ BOOL LLWindowMacOSX::createContext(int x, int y, int width, int height, int bits
}
}
+ mRefreshRate = CGDisplayModeGetRefreshRate(CGDisplayCopyDisplayMode(mDisplay));
+
// Disable vertical sync for swap
toggleVSync(enable_vsync);