diff options
author | Peter Varga <pvarga@inf.u-szeged.hu> | 2019-06-20 15:21:12 +0200 |
---|---|---|
committer | Peter Varga <pvarga@inf.u-szeged.hu> | 2019-06-20 15:25:17 +0200 |
commit | 4c6a199faaa23b14a975e10d1aae31dbe30883cd (patch) | |
tree | 33fa9240c67901a159565cff25b3aa8799b6f21c /src/core/ozone | |
parent | 9680828ac40d6e10eac02f4981f3668669409acf (diff) |
Fix offscreen with glx backend
The offscreen qpa plugin doesn't set robustness for the shared context.
Change-Id: I43715a2ae1b6b25876473dea4139ab76273329e7
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/ozone')
-rw-r--r-- | src/core/ozone/gl_context_qt.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/ozone/gl_context_qt.cpp b/src/core/ozone/gl_context_qt.cpp index ad298dff1..647498faf 100644 --- a/src/core/ozone/gl_context_qt.cpp +++ b/src/core/ozone/gl_context_qt.cpp @@ -166,6 +166,9 @@ QFunctionPointer GLContextHelper::getEglGetProcAddress() bool GLContextHelper::isCreateContextRobustnessSupported() { #if QT_CONFIG(opengl) + if (QGuiApplication::platformName() == QLatin1Literal("offscreen")) + return false; + if (QOpenGLContext *context = qt_gl_global_share_context()) return context->format().testOption(QSurfaceFormat::ResetNotification); #endif |