aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/scenegraph/qsgcontext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/scenegraph/qsgcontext.cpp')
-rw-r--r--src/declarative/scenegraph/qsgcontext.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/declarative/scenegraph/qsgcontext.cpp b/src/declarative/scenegraph/qsgcontext.cpp
index 682b514b9c..f5a082ba06 100644
--- a/src/declarative/scenegraph/qsgcontext.cpp
+++ b/src/declarative/scenegraph/qsgcontext.cpp
@@ -246,14 +246,20 @@ bool QSGContext::isReady() const
}
-void QSGContext::renderNextFrame()
+void QSGContext::renderNextFrame(QGLFramebufferObject *fbo)
{
Q_D(QSGContext);
emit d->engine.beforeRendering();
cleanupTextures();
- d->renderer->renderScene();
+
+ if (fbo) {
+ BindableFbo bindable(fbo);
+ d->renderer->renderScene(bindable);
+ } else {
+ d->renderer->renderScene();
+ }
emit d->engine.afterRendering();