summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-03-13 16:30:27 +0100
committerGitHub <noreply@github.com>2022-03-13 16:30:27 +0100
commit1164d083d268187932e3a21215e170235a52621f (patch)
tree873fe09f5469996f705b744c8756a6abfa0a5546
parentc8fce1661da2ed02e94d3edd91fc3f31aa6888cc (diff)
parentfba80dbd63930aa9842b33ebbc535e4ef8dcff04 (diff)
Merge pull request #59106 from Geometror/fix-windows-vsync-change-at-runtime
-rw-r--r--platform/windows/display_server_windows.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/platform/windows/display_server_windows.cpp b/platform/windows/display_server_windows.cpp
index 27b4a2018f..e1ab2d1c83 100644
--- a/platform/windows/display_server_windows.cpp
+++ b/platform/windows/display_server_windows.cpp
@@ -1917,16 +1917,14 @@ void DisplayServerWindows::set_icon(const Ref<Image> &p_icon) {
void DisplayServerWindows::window_set_vsync_mode(DisplayServer::VSyncMode p_vsync_mode, WindowID p_window) {
_THREAD_SAFE_METHOD_
#if defined(VULKAN_ENABLED)
- // TODO disabling for now
- //context_vulkan->set_vsync_mode(p_window, p_vsync_mode);
+ context_vulkan->set_vsync_mode(p_window, p_vsync_mode);
#endif
}
DisplayServer::VSyncMode DisplayServerWindows::window_get_vsync_mode(WindowID p_window) const {
_THREAD_SAFE_METHOD_
#if defined(VULKAN_ENABLED)
- //TODO disabling for now
- //return context_vulkan->get_vsync_mode(p_window);
+ return context_vulkan->get_vsync_mode(p_window);
#endif
return DisplayServer::VSYNC_ENABLED;
}