diff options
Diffstat (limited to 'tests/auto/gui/qopengl/tst_qopengl.cpp')
-rw-r--r-- | tests/auto/gui/qopengl/tst_qopengl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/gui/qopengl/tst_qopengl.cpp b/tests/auto/gui/qopengl/tst_qopengl.cpp index 38208d27c8..324e1f5d12 100644 --- a/tests/auto/gui/qopengl/tst_qopengl.cpp +++ b/tests/auto/gui/qopengl/tst_qopengl.cpp @@ -474,6 +474,9 @@ void tst_QOpenGL::openGLPaintDevice() QOpenGLContext ctx; ctx.create(); + QSurfaceFormat format = ctx.format(); + if (format.majorVersion() < 2) + QSKIP("This test requires at least OpenGL 2.0"); ctx.makeCurrent(&window); QImage image(128, 128, QImage::Format_RGB32); |