diff options
| author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2025-09-12 17:03:01 +0200 |
|---|---|---|
| committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2025-09-21 15:01:35 +0200 |
| commit | 11cc077da6a7e5fa06242fee2d8fbf581363c175 (patch) | |
| tree | 89d9a5cacbd72e91c5127ca2fce7b80c2c8eace2 /tests/auto/quick/qquickframebufferobject/tst_qquickframebufferobject.cpp | |
| parent | 0e2b013e1b2bdb5b9830994a29846de07bff797c (diff) | |
Skip tst_QQuickFramebufferObject if OpenGL is not available at runtime
Pick-to: 6.10 6.9 6.8 6.5
Change-Id: I6dfa9c0abf4bef736c39caee578b630efdea748d
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickframebufferobject/tst_qquickframebufferobject.cpp')
| -rw-r--r-- | tests/auto/quick/qquickframebufferobject/tst_qquickframebufferobject.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickframebufferobject/tst_qquickframebufferobject.cpp b/tests/auto/quick/qquickframebufferobject/tst_qquickframebufferobject.cpp index ffd6478f9c..7741401b5a 100644 --- a/tests/auto/quick/qquickframebufferobject/tst_qquickframebufferobject.cpp +++ b/tests/auto/quick/qquickframebufferobject/tst_qquickframebufferobject.cpp @@ -10,6 +10,9 @@ #include <qopenglframebufferobject.h> #include <qopenglfunctions.h> +#include <qpa/qplatformintegration.h> +#include <private/qguiapplication_p.h> + #include <QtQuick/QQuickFramebufferObject> #include <QtQuickTestUtils/private/qmlutils_p.h> @@ -136,6 +139,9 @@ tst_QQuickFramebufferObject::tst_QQuickFramebufferObject() void tst_QQuickFramebufferObject::initTestCase() { + if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::OpenGL)) + QSKIP("OpenGL is not enabled in this configuration"); + QQmlDataTest::initTestCase(); QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGLRhi); } |
