summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-06-17 16:02:01 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-06-17 16:02:01 +0200
commiteb20a68b323c1fcb75492f8132e1bd6d321713ec (patch)
tree15917249d760675a47c1ecd07a80dd77165ca14c
parentcf50779ef80c6158f2af72bbcc250731151c7c0f (diff)
parent29348be0cad371a0e2322d82d9a67031a90e9fa2 (diff)
downloadredot-engine-eb20a68b323c1fcb75492f8132e1bd6d321713ec.tar.gz
Merge pull request #93239 from Calinou/gl-vsync-tweak-warnings
Tweak warning messages related to V-Sync on OpenGL
-rw-r--r--platform/linuxbsd/x11/gl_manager_x11.cpp2
-rw-r--r--platform/windows/gl_manager_windows_native.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/platform/linuxbsd/x11/gl_manager_x11.cpp b/platform/linuxbsd/x11/gl_manager_x11.cpp
index febb7ae584..738ebffa02 100644
--- a/platform/linuxbsd/x11/gl_manager_x11.cpp
+++ b/platform/linuxbsd/x11/gl_manager_x11.cpp
@@ -357,7 +357,7 @@ void GLManager_X11::set_use_vsync(bool p_use) {
GLXDrawable drawable = glXGetCurrentDrawable();
glXSwapIntervalEXT(disp.x11_display, drawable, val);
} else {
- WARN_PRINT("Could not set V-Sync mode. V-Sync is not supported.");
+ WARN_PRINT_ONCE("Could not set V-Sync mode, as changing V-Sync mode is not supported by the graphics driver.");
return;
}
use_vsync = p_use;
diff --git a/platform/windows/gl_manager_windows_native.cpp b/platform/windows/gl_manager_windows_native.cpp
index b45d254fc6..c8d7534e26 100644
--- a/platform/windows/gl_manager_windows_native.cpp
+++ b/platform/windows/gl_manager_windows_native.cpp
@@ -510,10 +510,10 @@ void GLManagerNative_Windows::set_use_vsync(DisplayServer::WindowID p_window_id,
win.use_vsync = p_use;
if (!wglSwapIntervalEXT(p_use ? 1 : 0)) {
- WARN_PRINT("Could not set V-Sync mode.");
+ WARN_PRINT_ONCE("Could not set V-Sync mode, as changing V-Sync mode is not supported by the graphics driver.");
}
} else {
- WARN_PRINT("Could not set V-Sync mode. V-Sync is not supported.");
+ WARN_PRINT_ONCE("Could not set V-Sync mode, as changing V-Sync mode is not supported by the graphics driver.");
}
}