Skip tst_QOpenGL::openGLPaintDevice() if wrong openGL version.

It seems that this case is failing on CI because OpenGL version,
so skip if OpenGL is not recent enough.

Task-number: QTBUG-24192
Change-Id: I543e7a092e5c107ee57cd9dce7dc5c890a0315cf
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
This commit is contained in:
Miikka Heikkinen 2012-05-02 10:49:51 +03:00 committed by Qt by Nokia
parent c505a16451
commit 8c6c76b77e

View File

@ -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);