projects
/
profile
/
ivi
/
qtdeclarative.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make surface format plugable from the scene graph plugin
[profile/ivi/qtdeclarative.git]
/
src
/
declarative
/
scenegraph
/
qsgcontext.cpp
diff --git
a/src/declarative/scenegraph/qsgcontext.cpp
b/src/declarative/scenegraph/qsgcontext.cpp
index
7adbb32
..
9016b81
100644
(file)
--- a/
src/declarative/scenegraph/qsgcontext.cpp
+++ b/
src/declarative/scenegraph/qsgcontext.cpp
@@
-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.