From 33cdcafb24f21278d2ab34fa04cbf82ba57fa2aa Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Thu, 7 Oct 2010 08:28:46 +0200 Subject: use swapInterval=1 by default in EglFS to potentially avoid tearing --- src/plugins/platforms/eglfs/qeglfsscreen.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/platforms/eglfs/qeglfsscreen.cpp b/src/plugins/platforms/eglfs/qeglfsscreen.cpp index 1b64e7e..b31b204 100644 --- a/src/plugins/platforms/eglfs/qeglfsscreen.cpp +++ b/src/plugins/platforms/eglfs/qeglfsscreen.cpp @@ -121,6 +121,8 @@ QEglFSScreen::QEglFSScreen(EGLNativeDisplayType display) platformFormat.setRedBufferSize(8); platformFormat.setGreenBufferSize(8); platformFormat.setBlueBufferSize(8); + platformFormat.setSwapInterval(1); + EGLConfig config = q_configFromQPlatformWindowFormat(m_dpy, platformFormat); EGLNativeWindowType eglWindow = 0; -- cgit v0.12