Write vsync toggle msg to debug log not OSD
Write vsync enable/disable messages to debug log and not the OSD, they are kind of annoying. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
parent
5d2dd01e85
commit
c40a141792
|
@ -2283,18 +2283,18 @@ void GLDrawingPanel::DrawingPanelInit()
|
||||||
if (IsItWayland()) {
|
if (IsItWayland()) {
|
||||||
#ifdef HAVE_EGL
|
#ifdef HAVE_EGL
|
||||||
if (vsync)
|
if (vsync)
|
||||||
systemScreenMessage(_("Enabling EGL VSync."));
|
wxLogDebug(_("Enabling EGL VSync."));
|
||||||
else
|
else
|
||||||
systemScreenMessage(_("Disabling EGL VSync."));
|
wxLogDebug(_("Disabling EGL VSync."));
|
||||||
|
|
||||||
eglSwapInterval(0, vsync);
|
eglSwapInterval(0, vsync);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (vsync)
|
if (vsync)
|
||||||
systemScreenMessage(_("Enabling GLX VSync."));
|
wxLogDebug(_("Enabling GLX VSync."));
|
||||||
else
|
else
|
||||||
systemScreenMessage(_("Disabling GLX VSync."));
|
wxLogDebug(_("Disabling GLX VSync."));
|
||||||
|
|
||||||
static PFNGLXSWAPINTERVALEXTPROC glXSwapIntervalEXT = NULL;
|
static PFNGLXSWAPINTERVALEXTPROC glXSwapIntervalEXT = NULL;
|
||||||
static PFNGLXSWAPINTERVALSGIPROC glXSwapIntervalSGI = NULL;
|
static PFNGLXSWAPINTERVALSGIPROC glXSwapIntervalSGI = NULL;
|
||||||
|
|
Loading…
Reference in New Issue