summaryrefslogtreecommitdiffstats
path: root/tests/auto/cpptest/q3dscene/tst_scene.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/cpptest/q3dscene/tst_scene.cpp')
-rw-r--r--tests/auto/cpptest/q3dscene/tst_scene.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/cpptest/q3dscene/tst_scene.cpp b/tests/auto/cpptest/q3dscene/tst_scene.cpp
index 1336f400..2b450f64 100644
--- a/tests/auto/cpptest/q3dscene/tst_scene.cpp
+++ b/tests/auto/cpptest/q3dscene/tst_scene.cpp
@@ -32,6 +32,8 @@
#include <QtDataVisualization/Q3DScene>
#include <QtDataVisualization/Q3DBars>
+#include "cpptestutil.h"
+
using namespace QtDataVisualization;
class tst_scene: public QObject
@@ -142,6 +144,9 @@ void tst_scene::invalidProperties()
void tst_scene::subViews()
{
+ if (!CpptestUtil::isOpenGLSupported())
+ QSKIP("OpenGL not supported on this platform");
+
Q3DBars graph;
graph.setPosition(QPoint(0, 0));
graph.setWidth(200);