summaryrefslogtreecommitdiffstats
path: root/tools/qml
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-05-24 05:16:22 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-05-24 05:42:25 (GMT)
commit8cc8faa6d989b8eb7cd4e78b4a51bbdc3af6ba99 (patch)
tree0198b44c02cc0e3c18cbfb63c9876a860236d289 /tools/qml
parent06fbba775078def95f28139483f8645a00941fe5 (diff)
downloadQt-8cc8faa6d989b8eb7cd4e78b4a51bbdc3af6ba99.zip
Qt-8cc8faa6d989b8eb7cd4e78b4a51bbdc3af6ba99.tar.gz
Qt-8cc8faa6d989b8eb7cd4e78b4a51bbdc3af6ba99.tar.bz2
Get rid of 'noise' when using GL and the top-level item is an Item.
Task-number: QTBUG-10911
Diffstat (limited to 'tools/qml')
-rw-r--r--tools/qml/qmlruntime.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/qml/qmlruntime.cpp b/tools/qml/qmlruntime.cpp
index 8df250f..5136872 100644
--- a/tools/qml/qmlruntime.cpp
+++ b/tools/qml/qmlruntime.cpp
@@ -1240,7 +1240,8 @@ void QDeclarativeViewer::setUseGL(bool useGL)
#endif
QGLWidget *glWidget = new QGLWidget(format);
- glWidget->setAutoFillBackground(false);
+ //### potentially faster, but causes junk to appear if top-level is Item, not Rectangle
+ //glWidget->setAutoFillBackground(false);
canvas->setViewport(glWidget);
}