summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2009-12-15 17:20:45 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2009-12-15 17:20:45 (GMT)
commit802efaf0b20e08bcc04763a288a05551121493e8 (patch)
tree8498de13414cef12686f69f3925eb81c89c5fda3
parent9f3ae04fae52cd37855b135a0f2f519d1c5b969c (diff)
downloadQt-802efaf0b20e08bcc04763a288a05551121493e8.zip
Qt-802efaf0b20e08bcc04763a288a05551121493e8.tar.gz
Qt-802efaf0b20e08bcc04763a288a05551121493e8.tar.bz2
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
-rw-r--r--tests/auto/qgl/tst_qgl.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/auto/qgl/tst_qgl.cpp b/tests/auto/qgl/tst_qgl.cpp
index 7b701eb..532e550 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));