From 5dd94b75e37930e9941aaea06497d7e41c9c921f Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Wed, 6 Nov 2013 16:00:23 +0100 Subject: Add swapInterval to QSurfaceFormat Implement swap interval support for EGL, GLX and WGL. The environment variable QT_QPA_EGLFS_SWAPINTERVAL is renamed to QT_QPA_EGL_SWAPINTERVAL and can be used to override the applications' setting of the swap interval. Task-number: QTBUG-31939 Change-Id: I644325d5d3306b7604bffd7efccda3c00ed37d36 Reviewed-by: Friedemann Kleint Reviewed-by: Giuseppe D'Angelo Reviewed-by: Gunnar Sletta --- src/platformsupport/eglconvenience/qeglplatformcontext_p.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/platformsupport/eglconvenience/qeglplatformcontext_p.h') diff --git a/src/platformsupport/eglconvenience/qeglplatformcontext_p.h b/src/platformsupport/eglconvenience/qeglplatformcontext_p.h index 952f5a856a..3d81a1c56e 100644 --- a/src/platformsupport/eglconvenience/qeglplatformcontext_p.h +++ b/src/platformsupport/eglconvenience/qeglplatformcontext_p.h @@ -80,6 +80,9 @@ private: EGLenum m_eglApi; EGLConfig m_eglConfig; QSurfaceFormat m_format; + int m_swapInterval; + bool m_swapIntervalEnvChecked; + int m_swapIntervalFromEnv; }; #endif //QEGLPLATFORMCONTEXT_H -- cgit v1.2.3