summaryrefslogtreecommitdiffstats
path: root/src/opengl/qglframebufferobject.cpp
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2009-09-09 07:52:54 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2009-09-09 08:25:38 (GMT)
commitcfed7f06e186630c4c84d9cf278a2540a45dde2d (patch)
tree3b12ad864e1f03c53db454da8abc4813f66bad5a /src/opengl/qglframebufferobject.cpp
parentda261b786f2300bf395134f5abfefde3d1d474cc (diff)
downloadQt-cfed7f06e186630c4c84d9cf278a2540a45dde2d.zip
Qt-cfed7f06e186630c4c84d9cf278a2540a45dde2d.tar.gz
Qt-cfed7f06e186630c4c84d9cf278a2540a45dde2d.tar.bz2
Remove duplicate setFBO calls introduced by QGLPaintDevice merge
Reviewed-by: Trustme
Diffstat (limited to 'src/opengl/qglframebufferobject.cpp')
-rw-r--r--src/opengl/qglframebufferobject.cpp2
1 files changed, 0 insertions, 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 *>(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);
}