summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/eglfs/qeglfscontext.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2013-09-11 19:01:59 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-13 09:22:18 +0200
commite013eba2037c49385918a0ab1324bf58a18ee173 (patch)
tree6332e606116efd3b1f49b6e21a3defdbbd486686 /src/plugins/platforms/eglfs/qeglfscontext.h
parent5fd344389e163f1833f3d58c3cc994ac74063440 (diff)
eglfs: Set swap interval only when there is a context available
Mesa does not like eglSwapInterval calls without a current context. Change-Id: I7ec2d4311586cf74da0461bc951a0e5d9399c35b Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'src/plugins/platforms/eglfs/qeglfscontext.h')
-rw-r--r--src/plugins/platforms/eglfs/qeglfscontext.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfscontext.h b/src/plugins/platforms/eglfs/qeglfscontext.h
index 6caa49ab4f..8db340252c 100644
--- a/src/plugins/platforms/eglfs/qeglfscontext.h
+++ b/src/plugins/platforms/eglfs/qeglfscontext.h
@@ -55,6 +55,9 @@ public:
bool makeCurrent(QPlatformSurface *surface);
EGLSurface eglSurfaceForPlatformSurface(QPlatformSurface *surface);
void swapBuffers(QPlatformSurface *surface);
+
+private:
+ bool m_swapIntervalSet;
};
QT_END_NAMESPACE