summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl_egl.cpp
diff options
context:
space:
mode:
authorMichael Dominic K <mdk@codethink.co.uk>2011-04-01 08:02:35 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2011-04-01 08:04:00 (GMT)
commited4906de38f3421549ed2d71e3725bbe286f24ce (patch)
tree011071c5785c425f61fbc733359716480c8ad594 /src/opengl/qgl_egl.cpp
parent19d730890eba9da7bdccc2fbc8407bffd622311e (diff)
downloadQt-ed4906de38f3421549ed2d71e3725bbe286f24ce.zip
Qt-ed4906de38f3421549ed2d71e3725bbe286f24ce.tar.gz
Qt-ed4906de38f3421549ed2d71e3725bbe286f24ce.tar.bz2
QGLContext on EGL gets an additional QEglProperties static field applied to every window surface created.
Conflicts: src/opengl/qgl_egl.cpp src/opengl/qgl_p.h
Diffstat (limited to 'src/opengl/qgl_egl.cpp')
-rw-r--r--src/opengl/qgl_egl.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/opengl/qgl_egl.cpp b/src/opengl/qgl_egl.cpp
index d6b2d3b..ef36eb9 100644
--- a/src/opengl/qgl_egl.cpp
+++ b/src/opengl/qgl_egl.cpp
@@ -52,6 +52,8 @@
QT_BEGIN_NAMESPACE
+QEglProperties *QGLContextPrivate::extraWindowSurfaceCreationProps = NULL;
+
void qt_eglproperties_set_glformat(QEglProperties& eglProperties, const QGLFormat& glFormat)
{
int redSize = glFormat.redBufferSize();
@@ -309,6 +311,11 @@ void QGLContextPrivate::swapRegion(const QRegion &region)
eglContext->swapBuffersRegion2NOK(eglSurfaceForDevice(), &region);
}
+void QGLContextPrivate::setExtraWindowSurfaceCreationProps(QEglProperties *props)
+{
+ extraWindowSurfaceCreationProps = props;
+}
+
void QGLWidget::setMouseTracking(bool enable)
{
QWidget::setMouseTracking(enable);