From 1826294669b1224af69917efc3c387aeae2acdf1 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Fri, 3 Feb 2012 11:17:29 +0100 Subject: 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 --- src/quick/scenegraph/qsgcontext.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/quick/scenegraph/qsgcontext.cpp') 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(); -- cgit v1.2.3