Make surface format plugable from the scene graph plugin
[profile/ivi/qtdeclarative.git] / src / declarative / scenegraph / qsgcontext.cpp
index 7adbb32..9016b81 100644 (file)
@@ -380,6 +380,16 @@ QSGTexture *QSGContext::decodeImageToTexture(QIODevice *dev,
 
 
 
+QSurfaceFormat QSGContext::defaultSurfaceFormat() const
+{
+    QSurfaceFormat format;
+    format.setDepthBufferSize(24);
+    format.setStencilBufferSize(8);
+    format.setSamples(16);
+    return format;
+}
+
+
 /*!
     Factory function for texture objects.