From 65a09ee0fab56112ee2d48498ca8a7c0686d9280 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Thu, 14 May 2020 23:52:04 +0100 Subject: [PATCH] BASE: Always set a default value for the vsync config key --- backends/graphics/openglsdl/openglsdl-graphics.cpp | 1 - backends/platform/android/android.cpp | 1 - base/commandLine.cpp | 1 + 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp index 42643f98276..0a1c3ca39b5 100644 --- a/backends/graphics/openglsdl/openglsdl-graphics.cpp +++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp @@ -62,7 +62,6 @@ OpenGLSdlGraphicsManager::OpenGLSdlGraphicsManager(SdlEventSource *eventSource, _engineRequestedHeight(0) { ConfMan.registerDefault("antialiasing", 0); ConfMan.registerDefault("aspect_ratio", true); - ConfMan.registerDefault("vsync", true); _sideTextures[0] = _sideTextures[1] = nullptr; diff --git a/backends/platform/android/android.cpp b/backends/platform/android/android.cpp index 906601a24ac..0cdab187ce4 100644 --- a/backends/platform/android/android.cpp +++ b/backends/platform/android/android.cpp @@ -348,7 +348,6 @@ void OSystem_Android::initBackend() { ConfMan.set("fullscreen", "true"); ConfMan.registerDefault("aspect_ratio", true); ConfMan.registerDefault("touchpad_mouse_mode", true); - ConfMan.registerDefault("vsync", true); ConfMan.setInt("autosave_period", 0); ConfMan.setBool("FM_high_quality", false); diff --git a/base/commandLine.cpp b/base/commandLine.cpp index 823a6d7f79f..b6c693ae24c 100644 --- a/base/commandLine.cpp +++ b/base/commandLine.cpp @@ -260,6 +260,7 @@ void registerDefaults() { ConfMan.registerDefault("show_fps", false); ConfMan.registerDefault("dirtyrects", true); ConfMan.registerDefault("bpp", 0); + ConfMan.registerDefault("vsync", true); // ResidualVM specific end // Sound & Music