From cfed7f06e186630c4c84d9cf278a2540a45dde2d Mon Sep 17 00:00:00 2001 From: Tom Cooksey Date: Wed, 9 Sep 2009 09:52:54 +0200 Subject: Remove duplicate setFBO calls introduced by QGLPaintDevice merge Reviewed-by: Trustme --- src/opengl/qglframebufferobject.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/opengl/qglframebufferobject.cpp b/src/opengl/qglframebufferobject.cpp index f14fa4d..c1049b6 100644 --- a/src/opengl/qglframebufferobject.cpp +++ b/src/opengl/qglframebufferobject.cpp @@ -382,7 +382,6 @@ void QGLFramebufferObjectPrivate::init(QGLFramebufferObject *q, const QSize &sz, { QGLContext *currentContext = const_cast(QGLContext::currentContext()); ctx = QGLContextPrivate::contextGroup(currentContext); - glDevice.setFBO(q); bool ext_detected = (QGLExtensions::glExtensions & QGLExtensions::FramebufferObject); if (!ext_detected || (ext_detected && !qt_resolve_framebufferobject_extensions(currentContext))) @@ -644,7 +643,6 @@ QGLFramebufferObject::QGLFramebufferObject(const QSize &size, GLenum target) : d_ptr(new QGLFramebufferObjectPrivate) { Q_D(QGLFramebufferObject); - d->glDevice.setFBO(this); d->init(this, size, NoAttachment, target, DEFAULT_FORMAT); } -- cgit v0.12