summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgl
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2009-09-17 08:24:34 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2009-09-17 08:24:34 (GMT)
commit0ca968d2244214b465f1186628328f28caa33886 (patch)
treed543c54524e2d0d70eb737c2f5deeae36b8e1182 /tests/auto/qgl
parent0d5f6cdb1dbe67ce66b56f8cd4974a1c3199f1b2 (diff)
downloadQt-0ca968d2244214b465f1186628328f28caa33886.zip
Qt-0ca968d2244214b465f1186628328f28caa33886.tar.gz
Qt-0ca968d2244214b465f1186628328f28caa33886.tar.bz2
Skip the multipleFBOInterleavedRendering autotest on when using OpenGL 1
Interleaved rendering to GL targets is going to be flaky with the GL1 engine and wont be supported. Reviewed-by: Trustme
Diffstat (limited to 'tests/auto/qgl')
-rw-r--r--tests/auto/qgl/tst_qgl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qgl/tst_qgl.cpp b/tests/auto/qgl/tst_qgl.cpp
index 60a3f87..21f7359 100644
--- a/tests/auto/qgl/tst_qgl.cpp
+++ b/tests/auto/qgl/tst_qgl.cpp
@@ -967,6 +967,11 @@ void tst_QGL::multipleFBOInterleavedRendering()
QVERIFY(fbo2Painter.begin(fbo2));
QVERIFY(fbo3Painter.begin(fbo3));
+ // Confirm we're using the GL2 engine, as interleaved rendering isn't supported
+ // on the GL1 engine:
+ if (fbo1Painter.paintEngine()->type() != QPaintEngine::OpenGL2)
+ QSKIP("Interleaved GL rendering requires OpenGL 2.0 or higher", SkipSingle);
+
QPainterPath intersectingPath;
intersectingPath.moveTo(0, 0);
intersectingPath.lineTo(100, 0);