summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-09-07 02:42:03 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-09-07 02:42:03 (GMT)
commit365f00905e3cbe0b5b55258f38df9cb323b56524 (patch)
tree087429416bea930ba4da689691e8b680b247faae /tests
parentecab54e9af3f768c2704876e695a685671eab605 (diff)
downloadQt-365f00905e3cbe0b5b55258f38df9cb323b56524.zip
Qt-365f00905e3cbe0b5b55258f38df9cb323b56524.tar.gz
Qt-365f00905e3cbe0b5b55258f38df9cb323b56524.tar.bz2
Sample buffers are on by default for OpenGL/ES 2.0, off for others.
Reviewed-by: trustme
Diffstat (limited to 'tests')
-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 535e6ae..650c1ca 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));