aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/qsgthreadedrenderloop.cpp
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@jollamobile.com>2014-01-30 19:18:16 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-04 20:06:21 +0100
commitd781cc7d99fa1a1f34440ce319bacadfa4326673 (patch)
tree083d26bd5b5a2012a6e1635613d8c7e520a8fb2d /src/quick/scenegraph/qsgthreadedrenderloop.cpp
parent7c1e3dea8ba66f9eedee4f3d66dba55d7f7556b8 (diff)
Fix backend API, broken since 5.2.0
Without this change, it is not possible to implement a custom context without also implementing a renderloop. Change-Id: Iac2aa732251cdf7221b28f665394cdd336a3d846 Reviewed-by: Michael Brasser <michael.brasser@live.com>
Diffstat (limited to 'src/quick/scenegraph/qsgthreadedrenderloop.cpp')
-rw-r--r--src/quick/scenegraph/qsgthreadedrenderloop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/scenegraph/qsgthreadedrenderloop.cpp b/src/quick/scenegraph/qsgthreadedrenderloop.cpp
index d8fe947122..207a4915e1 100644
--- a/src/quick/scenegraph/qsgthreadedrenderloop.cpp
+++ b/src/quick/scenegraph/qsgthreadedrenderloop.cpp
@@ -709,7 +709,7 @@ QSGThreadedRenderLoop::QSGThreadedRenderLoop()
QSGRenderContext *QSGThreadedRenderLoop::createRenderContext(QSGContext *sg) const
{
- return new QSGRenderContext(sg);
+ return sg->createRenderContext();
}
void QSGThreadedRenderLoop::maybePostPolishRequest(Window *w)