aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/qsgcontext.cpp
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2012-02-03 11:17:29 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-08 14:36:58 +0100
commit1826294669b1224af69917efc3c387aeae2acdf1 (patch)
treef5fee198ab69538185558095c9aa83150f637ad0 /src/quick/scenegraph/qsgcontext.cpp
parentf5a43c09dbbf0caece4976303250a7582f6037ec (diff)
Added QQuickCanvas::setRenderTarget(uint fbo, const QSize &size)
This allows to hook in non-QOpenGLFrameBufferObject FBO's also Change-Id: I8a2f8f7f15d5a92262bdbb0507b232d7c11fdf25 Reviewed-by: Jani Hautakangas <jani.hautakangas@nokia.com>
Diffstat (limited to 'src/quick/scenegraph/qsgcontext.cpp')
-rw-r--r--src/quick/scenegraph/qsgcontext.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/quick/scenegraph/qsgcontext.cpp b/src/quick/scenegraph/qsgcontext.cpp
index 14a8547a9f..1f26e57fa5 100644
--- a/src/quick/scenegraph/qsgcontext.cpp
+++ b/src/quick/scenegraph/qsgcontext.cpp
@@ -221,10 +221,10 @@ bool QSGContext::isReady() const
}
-void QSGContext::renderNextFrame(QSGRenderer *renderer, QOpenGLFramebufferObject *fbo)
+void QSGContext::renderNextFrame(QSGRenderer *renderer, GLuint fboId)
{
- if (fbo) {
- QSGBindableFbo bindable(fbo);
+ if (fboId) {
+ QSGBindableFboId bindable(fboId);
renderer->renderScene(bindable);
} else {
renderer->renderScene();