summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-03-12 03:23:05 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-03-12 03:23:05 (GMT)
commit45ef66f690966eb39b3b8ebef1708e1b87c55140 (patch)
tree9622e516936c9416802770453916bdc30d86256b
parent41ebe4457a62949ba93f20d5ff9c90d3ee7ea499 (diff)
downloadQt-45ef66f690966eb39b3b8ebef1708e1b87c55140.zip
Qt-45ef66f690966eb39b3b8ebef1708e1b87c55140.tar.gz
Qt-45ef66f690966eb39b3b8ebef1708e1b87c55140.tar.bz2
Enable GL samplebuffers by default on Mac OS X
-rw-r--r--tools/qml/qmlruntime.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/qml/qmlruntime.cpp b/tools/qml/qmlruntime.cpp
index f12ec6f..c7acf2c 100644
--- a/tools/qml/qmlruntime.cpp
+++ b/tools/qml/qmlruntime.cpp
@@ -1444,10 +1444,15 @@ void QDeclarativeViewer::setUseGL(bool useGL)
#ifdef GL_SUPPORTED
if (useGL) {
QGLFormat format = QGLFormat::defaultFormat();
+#ifdef Q_WS_MAC
+ format.setSampleBuffers(true);
+#else
format.setSampleBuffers(false);
+#endif
QGLWidget *glWidget = new QGLWidget(format);
glWidget->setAutoFillBackground(false);
+
canvas->setViewport(glWidget);
}
#endif