summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2024-06-16 21:22:10 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2024-06-16 21:22:10 +0200
commit29348be0cad371a0e2322d82d9a67031a90e9fa2 (patch)
treed7100a902acdffee121fd0aa1d528d628c7b40ad /platform/linuxbsd
parent71699e08c9df78b7203fa4ef9cede28e995d6ace (diff)
downloadredot-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/linuxbsd')
-rw-r--r--platform/linuxbsd/x11/gl_manager_x11.cpp2
1 files changed, 1 insertions, 1 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;