diff options
| author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2024-06-16 21:22:10 +0200 |
|---|---|---|
| committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2024-06-16 21:22:10 +0200 |
| commit | 29348be0cad371a0e2322d82d9a67031a90e9fa2 (patch) | |
| tree | d7100a902acdffee121fd0aa1d528d628c7b40ad /platform/windows/gl_manager_windows_native.cpp | |
| parent | 71699e08c9df78b7203fa4ef9cede28e995d6ace (diff) | |
| download | redot-engine-29348be0cad371a0e2322d82d9a67031a90e9fa2.tar.gz | |
Tweak warning messages related to V-Sync on OpenGL
- Make warnings print only once per session.
- Tweak the message to be less confusing, and mention that the issue
most likely stems from a graphics driver limitation.
Diffstat (limited to 'platform/windows/gl_manager_windows_native.cpp')
| -rw-r--r-- | platform/windows/gl_manager_windows_native.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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."); } } |
