diff --git a/indra/newview/llviewercontrol.cpp b/indra/newview/llviewercontrol.cpp index 3e7459ee8a8896f08977f4a08e60bd76c7dc1278..0e64d7152af6523a22151388dc6dc613dfc09999 100644 --- a/indra/newview/llviewercontrol.cpp +++ b/indra/newview/llviewercontrol.cpp @@ -243,7 +243,9 @@ static bool handleAnisotropicChanged(const LLSD& newvalue) static bool handleVSyncChanged(const LLSD& newvalue) { +#if LL_WINDOWS gViewerWindow->getWindow()->toggleVSync(newvalue.asBoolean()); +#endif return true; } diff --git a/indra/newview/skins/default/xui/en/floater_preferences_graphics_advanced.xml b/indra/newview/skins/default/xui/en/floater_preferences_graphics_advanced.xml index cba75e8ea7e5555ab5372d9a376fa45485d5e01e..4f355cce0004f66fe723bc6cd2ee7408390dc12f 100644 --- a/indra/newview/skins/default/xui/en/floater_preferences_graphics_advanced.xml +++ b/indra/newview/skins/default/xui/en/floater_preferences_graphics_advanced.xml @@ -102,6 +102,18 @@ Low </text> + <check_box + control_name="RenderVSyncEnable" + height="16" + initial_value="true" + label="Enable VSync" + layout="topleft" + left="30" + top_delta="16" + name="vsync" + tool_tip="Synchronizes the frame rate to the refresh rate of the monitor, which results in smooth performance." + width="315" /> + <text type="string" length="1" @@ -333,18 +345,6 @@ top_delta="16" width="256" /> - <check_box - control_name="RenderVSyncEnable" - height="16" - initial_value="true" - label="Enable VSync" - layout="topleft" - left="30" - top_delta="16" - name="vsync" - tool_tip="Synchronizes the frame rate to the refresh rate of the monitor, which results in smooth performance." - width="315" /> - <check_box control_name="RenderCompressTextures" height="16"