diff options
Diffstat (limited to 'tests/auto/qglfunctions')
-rw-r--r-- | tests/auto/qglfunctions/tst_qglfunctions.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qglfunctions/tst_qglfunctions.cpp b/tests/auto/qglfunctions/tst_qglfunctions.cpp index 8d6be73..73e63b5 100644 --- a/tests/auto/qglfunctions/tst_qglfunctions.cpp +++ b/tests/auto/qglfunctions/tst_qglfunctions.cpp @@ -90,6 +90,8 @@ void tst_QGLFunctions::features() // Make a context current. QGLWidget glw; + if (!glw.isValid()) + QSKIP("Could not create a GL context", SkipAll); glw.makeCurrent(); funcs.initializeGLFunctions(); @@ -192,6 +194,8 @@ void tst_QGLFunctions::multitexture() { QGLFunctions funcs; QGLWidget glw; + if (!glw.isValid()) + QSKIP("Could not create a GL context", SkipAll); glw.makeCurrent(); funcs.initializeGLFunctions(); @@ -216,6 +220,8 @@ void tst_QGLFunctions::blendColor() { QGLFunctions funcs; QGLWidget glw; + if (!glw.isValid()) + QSKIP("Could not create a GL context", SkipAll); glw.makeCurrent(); funcs.initializeGLFunctions(); |