diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2010-10-07 06:28:46 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@nokia.com> | 2010-10-07 06:28:46 (GMT) |
commit | 33cdcafb24f21278d2ab34fa04cbf82ba57fa2aa (patch) | |
tree | a0ec49d45c1b593ee4d5a9ed9c68a4b715926b37 /src/plugins/platforms/eglfs/qeglfsscreen.cpp | |
parent | dc8d0961a50e28224dc36febb3530c47444f8638 (diff) | |
download | Qt-33cdcafb24f21278d2ab34fa04cbf82ba57fa2aa.zip Qt-33cdcafb24f21278d2ab34fa04cbf82ba57fa2aa.tar.gz Qt-33cdcafb24f21278d2ab34fa04cbf82ba57fa2aa.tar.bz2 |
use swapInterval=1 by default in EglFS to potentially avoid tearing
Diffstat (limited to 'src/plugins/platforms/eglfs/qeglfsscreen.cpp')
-rw-r--r-- | src/plugins/platforms/eglfs/qeglfsscreen.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |