summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-09-07 12:42:03 +1000
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-09-07 12:42:03 +1000
commit365f00905e3cbe0b5b55258f38df9cb323b56524 (patch)
tree087429416bea930ba4da689691e8b680b247faae
parentecab54e9af3f768c2704876e695a685671eab605 (diff)
Sample buffers are on by default for OpenGL/ES 2.0, off for others.
Reviewed-by: trustme
-rw-r--r--tests/auto/qgl/tst_qgl.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qgl/tst_qgl.cpp b/tests/auto/qgl/tst_qgl.cpp
index 535e6ae023..650c1ca23b 100644
--- a/tests/auto/qgl/tst_qgl.cpp
+++ b/tests/auto/qgl/tst_qgl.cpp
@@ -231,9 +231,15 @@ 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));