diff options
-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 |