aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/qsgcontext.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2014-08-07 17:19:50 +0200
committerLaszlo Agocs <laszlo.agocs@digia.com>2014-08-11 13:19:38 +0200
commitf03892bbe9f017459d72e15943dc35ac86a681bf (patch)
tree6e751dd0e6af3c94a75b1fadfe7e3805fd116084 /src/quick/scenegraph/qsgcontext.cpp
parent126c06586849ca41c7d13b833cb8af98d3873b4b (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.cpp2
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);