aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-05-08 13:51:50 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-05-11 08:43:16 +0200
commit4a38c24ef64f5affb81d0ef0036014a0117eca3d (patch)
tree15ffedbfd30ff929fdcc09794a85099b67616053 /tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp
parent1adf4a86836d334406bd796480d70623d038d040 (diff)
Add missing OpenGL check in qquickitemlayer/layerEffect
Other ShaderEffect-related cases in the same test already test for using direct OpenGL. Add the same check to the layerEffect case too. The proper migration (away from the inline GLSL code) is left as a future exercise. Change-Id: I4b5eb054709fd60adda8f1d2d8f310eb3bddf960 Reviewed-by: Jonas Karlsson <jonas.karlsson@qt.io> Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp')
-rw-r--r--tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp b/tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp
index c5d05585e0..7817ebbcc5 100644
--- a/tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp
+++ b/tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp
@@ -212,6 +212,9 @@ void tst_QQuickItemLayer::layerEffect()
|| (QGuiApplication::platformName() == QLatin1String("minimal")))
QSKIP("Skipping due to grabWindow not functional on offscreen/minimal platforms");
+ if (!m_isOpenGLRenderer)
+ QSKIP("Only OpenGL Renderer supports GLSL ShaderEffects");
+
QImage fb = runTest("Effect.qml");
QVERIFY(!fb.size().isEmpty());
QCOMPARE(fb.pixel(0, 0), qRgb(0xff, 0, 0));