summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/eglfs
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-07-29 12:35:46 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-08-03 09:41:10 +0200
commita0db31ee527e58ae531375e78780e2b05ff64107 (patch)
tree6583aab97c1e370443b2a277e0a34e4d3131a61e /src/plugins/platforms/eglfs
parent246e7125485570416560d6a8503f785a31be1b3e (diff)
eglfs: Prevent printing a warning in every widget-based app
Attempting to reflect reality with the value of AA_ShareOpenGLContexts was a valiant attempt, but it is not possible to do setAttribute without getting a warning now once QGuiApplication is constructed. So just leave the attribute as is, changing its value is not strictly required. Fixes: QTBUG-85796 Pick-to: 5.15 Change-Id: I0f0f981bb4883856b216b2a9aad3b5bf2d7da01a Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/plugins/platforms/eglfs')
-rw-r--r--src/plugins/platforms/eglfs/api/qeglfswindow.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/plugins/platforms/eglfs/api/qeglfswindow.cpp b/src/plugins/platforms/eglfs/api/qeglfswindow.cpp
index 452dba10c7..2ee237ec28 100644
--- a/src/plugins/platforms/eglfs/api/qeglfswindow.cpp
+++ b/src/plugins/platforms/eglfs/api/qeglfswindow.cpp
@@ -148,12 +148,8 @@ void QEglFSWindow::create()
compositor->setRotation(qEnvironmentVariableIntValue("QT_QPA_EGLFS_ROTATION"));
// If there is a "root" window into which raster and QOpenGLWidget content is
// composited, all other contexts must share with its context.
- if (!qt_gl_global_share_context()) {
+ if (!qt_gl_global_share_context())
qt_gl_set_global_share_context(m_rasterCompositingContext);
- // What we set up here is in effect equivalent to the application setting
- // AA_ShareOpenGLContexts. Set the attribute to be fully consistent.
- QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
- }
}
#endif // QT_NO_OPENGL
}