Make surface format plugable from the scene graph plugin
authorGunnar Sletta <gunnar.sletta@nokia.com>
Fri, 23 Sep 2011 14:24:06 +0000 (16:24 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 26 Sep 2011 08:46:29 +0000 (10:46 +0200)
commit73a9e0a7657112cac94107f771c33270467eff08
tree7c46167a2055deb5cc08346446d6033a1a9d1a1a
parent162b52e7e95e3fcd747fb4b1867bcc54e603c266
Make surface format plugable from the scene graph plugin

Also enable depth, stencil and samples by default as our default
renderer requires both depth and stencil and our default rounded
rectangles require multisampling

The user should be able to override the default format, by getting
the QSGCanvas::format(), modify it and set it back, but this
is currently not supported in QWindow, so that will have to wait

Change-Id: I1869003705709987ab2e9a3cebbeeec4d45a2021
Reviewed-on: http://codereview.qt-project.org/5464
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
src/declarative/items/qsgcanvas.cpp
src/declarative/scenegraph/qsgcontext.cpp
src/declarative/scenegraph/qsgcontext_p.h