diff options
author | Andrew Knight <andrew.knight@digia.com> | 2013-09-30 15:07:24 +0300 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-30 14:18:38 +0200 |
commit | aa5f78cb33404e585a1e511a58a0ca43aa46f421 (patch) | |
tree | 4bd0837b0089dbecbef4644a156ec9d2499e4e5c /tests/auto/other/lancelot/tst_lancelot.cpp | |
parent | f08cc1dabe9aba1fbb1ddfa9d9a3f38afac65372 (diff) |
OpenGL autotests: verify create()/makeCurrent()
If create() or makeCurrent() calls fail, the test should fail fast.
Change-Id: I025c541f94c8eee492cf0e1545bfbb8027eff2a7
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'tests/auto/other/lancelot/tst_lancelot.cpp')
-rw-r--r-- | tests/auto/other/lancelot/tst_lancelot.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/other/lancelot/tst_lancelot.cpp b/tests/auto/other/lancelot/tst_lancelot.cpp index fff8884d67..a99b041bfc 100644 --- a/tests/auto/other/lancelot/tst_lancelot.cpp +++ b/tests/auto/other/lancelot/tst_lancelot.cpp @@ -228,8 +228,8 @@ void tst_Lancelot::runTestSuite(GraphicsEngine engine, QImage::Format format) fmt.setAttachment(QOpenGLFramebufferObject::CombinedDepthStencil); fmt.setSamples(4); QOpenGLContext ctx; - ctx.create(); - ctx.makeCurrent(&win); + QVERIFY(ctx.create()); + QVERIFY(ctx.makeCurrent(&win)); QOpenGLFramebufferObject fbo(800, 800, fmt); fbo.bind(); QOpenGLPaintDevice pdv(800, 800); |