diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-12-15 18:20:45 +0100 |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-12-15 18:20:45 +0100 |
commit | 802efaf0b20e08bcc04763a288a05551121493e8 (patch) | |
tree | 8498de13414cef12686f69f3925eb81c89c5fda3 /tests/auto/qgl | |
parent | 9f3ae04fae52cd37855b135a0f2f519d1c5b969c (diff) | |
download | qt4-tools-802efaf0b20e08bcc04763a288a05551121493e8.tar.gz |
Fix autotest which checks for sample buffers
Change c4d66e27 made sample buffers on EGL platforms to default
to off, matching desktop GL. This patch fixes the autotest which
was still testing for the old behaviour.
Reviewed-By: TrustMe
Diffstat (limited to 'tests/auto/qgl')
-rw-r--r-- | tests/auto/qgl/tst_qgl.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/auto/qgl/tst_qgl.cpp b/tests/auto/qgl/tst_qgl.cpp index 7b701eb5d7..532e5508e8 100644 --- a/tests/auto/qgl/tst_qgl.cpp +++ b/tests/auto/qgl/tst_qgl.cpp @@ -252,15 +252,10 @@ void tst_QGL::getSetCheck() // bool QGLFormat::sampleBuffers() // void QGLFormat::setSampleBuffers(bool) -#if !defined(QT_OPENGL_ES_2) QCOMPARE(false, obj1.sampleBuffers()); QVERIFY(!obj1.testOption(QGL::SampleBuffers)); QVERIFY(obj1.testOption(QGL::NoSampleBuffers)); -#else - QCOMPARE(true, obj1.sampleBuffers()); - QVERIFY(obj1.testOption(QGL::SampleBuffers)); - QVERIFY(!obj1.testOption(QGL::NoSampleBuffers)); -#endif + obj1.setSampleBuffers(false); QCOMPARE(false, obj1.sampleBuffers()); QVERIFY(obj1.testOption(QGL::NoSampleBuffers)); |