diff options
author | Laszlo Agocs <laszlo.agocs@digia.com> | 2014-08-07 17:19:50 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@digia.com> | 2014-08-11 13:19:38 +0200 |
commit | f03892bbe9f017459d72e15943dc35ac86a681bf (patch) | |
tree | 6e751dd0e6af3c94a75b1fadfe7e3805fd116084 /src/quick/scenegraph/qsgcontext.cpp | |
parent | 126c06586849ca41c7d13b833cb8af98d3873b4b (diff) |
Remove setDefaultFormat() from QQuickWindow
Replaced by QSurfaceFormat::setDefaultFormat().
Change-Id: If4e37b75ccb55d556d80b0079be89e5a521f6dbb
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'src/quick/scenegraph/qsgcontext.cpp')
-rw-r--r-- | src/quick/scenegraph/qsgcontext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/scenegraph/qsgcontext.cpp b/src/quick/scenegraph/qsgcontext.cpp index cf980dfbd4..67a5f25405 100644 --- a/src/quick/scenegraph/qsgcontext.cpp +++ b/src/quick/scenegraph/qsgcontext.cpp @@ -310,7 +310,7 @@ QSGNinePatchNode *QSGContext::createQStyleNode() QSurfaceFormat QSGContext::defaultSurfaceFormat() const { - QSurfaceFormat format; + QSurfaceFormat format = QSurfaceFormat::defaultFormat(); static bool useDepth = qEnvironmentVariableIsEmpty("QSG_NO_DEPTH_BUFFER"); static bool useStencil = qEnvironmentVariableIsEmpty("QSG_NO_STENCIL_BUFFER"); format.setDepthBufferSize(useDepth ? 24 : 0); |